Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2024 11:05 AM
Hello Pedro, you can create tokens on behalf service principal by running command on CLI:
databricks token-management create-obo-token <application-id> --lifetime-seconds <lifetime-seconds> --comment <comment> -p <profile-name>
Or by API call https://docs.databricks.com/api/workspace/tokenmanagement/createobotoken
The command you are running is only set for user PAT token, this is why it authenticates with your user.