Snowflake Troubleshooting Guide: Resolving "Invalid Grant" Errors
USER <service_account_name> SET DEFAULT_ROLE = '<correct_role>'; ALTER USER <service_account_name> SET… USER <username> SET RSA_USER_PUBLIC_KEY = '<public_key_value>';
Use ALTER Instead of DROP/CREATE… When modifying roles, prefer ALTER ROLE and incremental GRANT/REVOKE statements over dropping and