Describe the issue
databricks auth login for an account-level profile auto-generates a workspace_id field in .databrickscfg. This causes databricks auth describe to fail with Unable to authenticate: Unable to load OAuth Config, even though databricks auth token works correctly with the same profile. Removing workspace_id from the profile resolves the issue.
Steps to reproduce the behavior
- Run account-level login:
databricks auth login --host https://accounts.cloud.databricks.com --account-id <account-id>
- Follow the interactive prompts (select a workspace when asked).
- Observe the auto-generated profile in
~/.databrickscfg:
[ACCOUNT-<account-id>]
host = https://accounts.cloud.databricks.com/
account_id = <account-id>
workspace_id = <workspace-id>
auth_type = databricks-cli
- Run
databricks auth token --profile ACCOUNT-<account-id> → succeeds (returns a valid token).
- Run
databricks auth describe --profile ACCOUNT-<account-id> → fails with Unable to authenticate: Unable to load OAuth Config.
- Manually remove
workspace_id from the profile and re-login.
- Run
databricks auth describe --profile ACCOUNT-<account-id> again → succeeds (Authenticated with: databricks-cli).
Expected Behavior
auth describe should work with the auto-generated profile without manual edits.
Actual Behavior
auth login writes workspace_id into the account-level profile.
auth describe fails with Unable to authenticate: Unable to load OAuth Config.
auth token succeeds with the same profile, indicating an inconsistency between the two commands.
OS and CLI version
- OS: Windows
- CLI: Databricks CLI v1.2.1
Is this a regression?
Unknown. This was observed on v1.2.1 (latest as of 2026-06-09). Not tested on earlier versions.
Debug Logs
> databricks auth describe --profile ACCOUNT-<account-id>
Unable to authenticate: Unable to load OAuth Config
Token storage: secure, OS keyring (service: databricks-cli) (from auth_storage in [__settings__] section of C:/Users/<user>/.databrickscfg)
-----
Current configuration:
✓ host: https://accounts.cloud.databricks.com/ (from C:\Users\<user>/.databrickscfg config file)
✓ account_id: <account-id> (from C:\Users\<user>/.databrickscfg config file)
✓ workspace_id: <workspace-id> (from C:\Users\<user>/.databrickscfg config file)
✓ profile: ACCOUNT-<account-id> (from --profile flag)
✓ auth_type: databricks-cli (from C:\Users\<user>/.databrickscfg config file)
✓ cloud: AWS
✓ audience: <account-id>
✓ discovery_url: https://accounts.cloud.databricks.com/oidc/accounts/<account-id>/.well-known/oauth-authorization-server
Describe the issue
databricks auth loginfor an account-level profile auto-generates aworkspace_idfield in.databrickscfg. This causesdatabricks auth describeto fail withUnable to authenticate: Unable to load OAuth Config, even thoughdatabricks auth tokenworks correctly with the same profile. Removingworkspace_idfrom the profile resolves the issue.Steps to reproduce the behavior
~/.databrickscfg:databricks auth token --profile ACCOUNT-<account-id>→ succeeds (returns a valid token).databricks auth describe --profile ACCOUNT-<account-id>→ fails withUnable to authenticate: Unable to load OAuth Config.workspace_idfrom the profile and re-login.databricks auth describe --profile ACCOUNT-<account-id>again → succeeds (Authenticated with: databricks-cli).Expected Behavior
auth describeshould work with the auto-generated profile without manual edits.Actual Behavior
auth loginwritesworkspace_idinto the account-level profile.auth describefails withUnable to authenticate: Unable to load OAuth Config.auth tokensucceeds with the same profile, indicating an inconsistency between the two commands.OS and CLI version
Is this a regression?
Unknown. This was observed on v1.2.1 (latest as of 2026-06-09). Not tested on earlier versions.
Debug Logs