โ05-09-2023 09:34 PM
I want to set the databricks cluster Access mode to single user and assign the service principal account to the user.
In other words, after creating a single mode cluster, how can I access only servcie principals?
โ05-09-2023 09:39 PM
Cluster Type is All-purpose Compute
โ12-05-2023 02:44 PM
@17780 Did you ever figure this out? I am trying to do the same.
โ12-08-2023 04:47 PM
Sure thing! So, if you're looking to set up your data block cluster access mode to a single user and want that user to be a service principal account, you've got a couple of steps ahead. First, create your single-mode cluster. Once that's done, you'll need to assign the service principal account to it. This involves configuring the necessary permissions and access rights for that service principal. After the setup, you should be able to access the cluster using only the service principal account you've designated. It's all about fine-tuning those permissions to ensure that only the right folks (or, in this case, service principals) can get in. Double-check your configurations, and you should be good to go!
Best regards, Zpakerman
โ04-04-2024 09:32 AM
Below solution worked for me!!
It is not possible to update single user via UI
But you can update the service principal as the signle user via databricks cli.
1. install databricks cli
2. run command databricks configure
3. run command:
# Execute clusters edit Command to Set Service Principal as Single User
databricks clusters edit <cluster id> <spark version number>--cluster-name "<cluster name>" --data-security-mode SINGLE_USER --single-user-name <client id of the service principal> --num-workers 1 --node-type-id <node type> --no-wait
โ10-29-2024 08:59 AM
So, here is an alternative to either the UI (doesn't work actually; not possible) or the CLI. Use the Databricks API.
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