01-27-2022 08:28 PM
customer is trying to generate a Databricks token for a service principal (SP). They’ve created the SP in Azure AD and have used the Databricks rest api to add it as an admin.
When using the Databricks rest api /api/2.0/token-management/on-behalf-of/tokens to create a token for this SP, I get this error, {"error_code":"FEATURE_DISABLED","message":"On-behalf-of token creation for service principals is not enabled for this workspace"}. What's confusing is that personal access tokens are enabled and I've even gone to the extent to manually add the SP to these permissions. I'm not sure what setting I can change in Databricks to enable this feature. Any help would be greatly appreciated.
02-09-2022 10:56 AM
Are you running the API against an Azure workspace?
The API endpoint is not supported on Azure workspace now.
Could you let me know your use case so that I can understand why do you want to run api/2.0/token-management/on-behalf-of/tokens
03-01-2022 05:18 AM
We would also like to have this feature - e.g. to separate personal tokens and general tokens which are used e.g. for a tableau - to sql endpoint connection.
03-07-2022 01:04 AM
Is there a chance two have a similar feature in Azure workspace? We would like to generate a token for a SP that need to access to Databricks SQL Endpoint through an Azure Function.
06-06-2022 09:51 PM
how are we supposed to set up SCIM provisioning if we can't generate a token for a service principle? Please can you specify when this function will be available
02-15-2023 11:07 AM
Could you please provide with some information so that it could be possible to track the progress on this feature?
06-09-2022 05:52 AM
Could you please refer to this documentation?
https://docs.microsoft.com/en-us/azure/databricks/dev-tools/api/latest/aad/service-prin-aad-token
12-08-2022 12:51 PM
i followed the above recommendations but still getting "FEATURE_DISABLED","message":"On-behalf-of token creation for service principals is not enabled for this workspace"}
Any help would be greatly appreciated
02-08-2023 01:29 AM
Having the same problem here. @Nitisha Nigam did you solve it?
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