โ02-19-2025 08:33 AM
I have created a Databricks Managed Service Principal and trying to access the APIs like clusters list, job lists pipelines but without adding it to admin group I am getting empty list in response. There are other ways to get clusters by adding policy and giving permission to specific cluster to get the details. Is there a way to create a service principal and access the api (READ only) without giving admin access(admin group)?
โ02-20-2025 05:10 AM
Only admin access through account console can be given not read only unfortunately.
โ02-19-2025 12:23 PM
Hi @akshay716,
You can assign specific permissions directly to the service principal without granting it broader admin access
โ02-19-2025 09:32 PM - edited โ02-19-2025 09:33 PM
Hi @Alberto_Umana ,
I have selected all the Entitlements for that service principal and in Permissions added all the available roles, still not getting any data without adding it to the Admin group. Am I missing anything?
โ02-19-2025 09:48 PM
You need specific permissions, try assigning cluster and job read access.
โ02-19-2025 10:00 PM
@BlakeWaverly I don't see cluster and job read access, Can you please share where can I find these. though I can assign this service principal to a specific cluster/job as CAN_VIEW but I want to add Read permission on workspace level.
โ02-20-2025 04:46 AM
Specific Entitlements: You need to assign specific permissions to the service principal for each type of resource you want to access.
CAN_VIEW
permission to the service principal for the clusters it needs to access.CAN_VIEW
permission for the jobs the service principal should access.CAN_VIEW
โ02-20-2025 05:04 AM
@Alberto_Umana Is it possible to give CAN_VIEW permission on the workspace level instead of specific resource?
โ02-20-2025 05:10 AM
Only admin access through account console can be given not read only unfortunately.
Passionate about hosting events and connecting people? Help us grow a vibrant local communityโsign up today to get started!
Sign Up Now