- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2025 07:12 AM
Hello community,
I want to have a new token, to be available to our users to interact with staging workspace. Is it possible to generate a token to be used for triggering only workflow in staging workspace databricks with databricks api?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2025 07:15 AM - edited 01-10-2025 07:16 AM
You could make use of Service Principals, and generate a on behalf Service Principal token, so your users will be able to make use of this token for their API calls.
This is the API call you can run to generate this token https://docs.databricks.com/api/workspace/tokenmanagement/createobotoken
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2025 07:17 AM
thanks to this fast answer, but how can I generate it for the service principal? Because I created it some months ago
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2025 07:40 AM
you will need to have your own personal token to create one for your SP, in the UI you need to go to Settings > Under User > Developer > Personal Access Token.
Once you have your own token you can run the API I mentioned on my previous post and you need to give the application id of your SP. To get this App id you can go to settings > Identity and Access > Service Principals > Select the desired SP.