cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

token share

jeremy98
Contributor

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?

1 ACCEPTED SOLUTION

Accepted Solutions

Walter_C
Databricks Employee
Databricks Employee

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.

View solution in original post

3 REPLIES 3

Walter_C
Databricks Employee
Databricks Employee

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 

thanks to this fast answer, but how can I generate it for the service principal? Because I created it some months ago

 

Walter_C
Databricks Employee
Databricks Employee

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.

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโ€™t want to miss the chance to attend and share knowledge.

If there isnโ€™t a group near you, start one and help create a community that brings people together.

Request a New Group