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:ย 

Service principle Personal Access Token permissions

yit337
Contributor

Hello,

I'm using a generated PAT from Service Principal to access Databricks from other tools. 

Now I've extended the permissions of the Service Principal. Should I re-generate the PAT? Or is the PAT used only for authentication, and authorisation is decided in real time during access?

1 ACCEPTED SOLUTION

Accepted Solutions

anshu_roy
Databricks Employee
Databricks Employee

Hello,

The PAT is an authentication credential for your service principal; authorization is evaluated at request time based on the current permissions of that principal (and token permissions, if enabled), not the moment the token was created.
So if you only extended the service principalโ€™s permissions (for example, more workspace / UC privileges), you do not need to reโ€‘generate the PAT. As long as the token is still valid and the SP still has permission to use tokens, the existing PAT will pick up the new permissions automatically.
The only time youโ€™d need a new token is if the old one was revoked, expired, or the principal temporarily lost โ€œCAN USEโ€ token permission (in which case tokens become unusable until that permission is restored).

View solution in original post

2 REPLIES 2

anshu_roy
Databricks Employee
Databricks Employee

Hello,

The PAT is an authentication credential for your service principal; authorization is evaluated at request time based on the current permissions of that principal (and token permissions, if enabled), not the moment the token was created.
So if you only extended the service principalโ€™s permissions (for example, more workspace / UC privileges), you do not need to reโ€‘generate the PAT. As long as the token is still valid and the SP still has permission to use tokens, the existing PAT will pick up the new permissions automatically.
The only time youโ€™d need a new token is if the old one was revoked, expired, or the principal temporarily lost โ€œCAN USEโ€ token permission (in which case tokens become unusable until that permission is restored).

yit337
Contributor

Thanks for the great answer @anshu_roy 
Where can I check the token permissions?