- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2024 11:20 AM
I am working on a notebook to help me create Azure Databricks Groups. When I create a group in a workspace using the UI, it automatically creates the group at the account level and links them. When I create a group using the API, and I create the workspace group, it creates it as a local group to the workspace. Using a different API, I was able to create the group at the account level. I have not found the API so I can do the exact same thing that happens in the UI. Any suggestions?
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2024 01:29 PM
Hi @Derek_Czarny ,
Unfortunately, there is no single endpoint that replicates what you can do in the UI. But you can achieve the same with following approach:
- create group at account level using below endpoint:
https://docs.databricks.com/api/account/accountgroups/create
- associate this group with workspace using below endpoint
https://docs.databricks.com/api/account/workspaceassignment/update
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2024 01:29 PM
Hi @Derek_Czarny ,
Unfortunately, there is no single endpoint that replicates what you can do in the UI. But you can achieve the same with following approach:
- create group at account level using below endpoint:
https://docs.databricks.com/api/account/accountgroups/create
- associate this group with workspace using below endpoint
https://docs.databricks.com/api/account/workspaceassignment/update
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2024 07:40 AM
I am finally able to circle back to this. I can create the account group just fine. When I go to create the workspace group, I keep getting an error message:
Response: {"error_code":"ENDPOINT_NOT_FOUND","message":"No API found for 'POST /accounts/[REDACTED]/workspaces/[REDACTED]/permissionassignments/principals/[REDACTED]'"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2024 10:45 AM
Hi @Derek_Czarny ,
I guess you're using wrong http method. You should use PUT method instead POST.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2024 11:20 AM
That was it, thank you. I was looking at the wrong details. I really appreciate it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2024 12:11 PM
Cool, I'm happy that it worked for you

