cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Administration & Architecture
Explore discussions on Databricks administration, deployment strategies, and architectural best practices. Connect with administrators and architects to optimize your Databricks environment for performance, scalability, and security.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

How to list my groups in unitity catalog via an API

Marco37
New Contributor III

I'm trying to list my groups in unity catalog via an API call, but it keeps giving the error "Bad Target"

My GET request is:
-https://adb-3676685197829242.2.azuredatabricks.net/api/2.1/accounts/cfb89269-0d9e-4235-b7985-455481b501a/scim/v2/Groups

I'm able to list my external locations:
-https://adb-3676645627829242.2.azuredatabricks.net/api/2.1/unity-catalog/external-locations

What am I doing wrong?

Information source:
https://docs.databricks.com/en/reference/scim-2-1.html

 

 

2 REPLIES 2

Kaniz_Fatma
Community Manager
Community Manager

Hi @Marco37, The SCIM API endpoint you provided is for managing users and groups at the account level, not specifically for the Unity Catalog. Unfortunately, there isnโ€™t a direct API endpoint for listing groups in the Unity Catalog. However, you can manage permissions and access control lists (ACLs) for Unity Catalog objects, which might help you achieve your goal indirectly.

Marco37
New Contributor III

Hi Kaniz,

I'm new to administering Databricks. What I'm trying to achieve is creating a powershell script that adds groups to (and lists groups from)
- Account console
    - User management
        - Groups

How can I achieve this by using an API call (or CLI if an API call is not possible)? Do you have an example?

Regards,
Marco

 

Connect with Databricks Users in Your Area

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