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:ย 

AIM configuration on Databricks (AWS)

Andrew_Barlow
New Contributor II

Hello,

We want to manage our users and groups (not service principals) via AIM on our databricks platform which sits on AWS. This is an existing platform with manually created users and groups

In the documentation it refers to the externalID of both the user and the group having to be populated in databricks?

If the exact same user and group exist already in Entra - will this be populated automatically and mapped from the email address for the user and the group name for the group? Or - do we have to manually populate the externalID's for existing users and groups with the api?

Is this just for existing manually created users and groups? If we add a new group and a new user will this just sync across. Thanks

1 ACCEPTED SOLUTION

Accepted Solutions

NinaThoni
Databricks Employee
Databricks Employee
Thanks for the clear question.

In one line: Users sort themselves out, existing groups need a one-time manual ID link, and anything new arrives when it's first used.

Existing users: you don't need to set the externalId yourself. When a user signs in or is next synced, AIM matches them to Entra by username and sets their externalId to the Entra objectId. Their existing permissions stay in place. For this to work reliably, each Databricks username should equal the user's Entra UPN (or a unique email in the tenant). You can set the externalId ahead of time through the API if you prefer, but it isn't required.

Existing groups: these are not matched by name. A manually created account group with the same name as an Entra group won't be linked automatically, and its Entra memberships won't sync. To link them, update each existing Databricks group's externalId to the Entra group's objectId, using the Account Groups (or Account SCIM) API. The group keeps the same Databricks ID, so its workspace assignments and Unity Catalog grants carry over. AIM doesn't manage workspace-local groups, so migrate those to account groups first.
Before you enable AIM, run the AIM readiness report. It lists the users and groups whose externalId is missing or doesn't match Entra, so you know exactly which groups need updating.

New users and groups: yes, they come across, but AIM works on demand rather than pushing everything up front like SCIM. A new user is created the first time they sign in, or when an admin adds them. A new group becomes available in Databricks when you add it to the account, assign it to a workspace, or share something with it. Group members are added as they become active in Databricks.
I'd suggest testing with one or two groups first to check that grants and memberships behave as expected, then rolling out to the rest.

Thanks again for raising it.

Cheers,
Nina

References
Nina Thoni
Databricks Senior Solutions Engineer

View solution in original post

2 REPLIES 2

NinaThoni
Databricks Employee
Databricks Employee
Thanks for the clear question.

In one line: Users sort themselves out, existing groups need a one-time manual ID link, and anything new arrives when it's first used.

Existing users: you don't need to set the externalId yourself. When a user signs in or is next synced, AIM matches them to Entra by username and sets their externalId to the Entra objectId. Their existing permissions stay in place. For this to work reliably, each Databricks username should equal the user's Entra UPN (or a unique email in the tenant). You can set the externalId ahead of time through the API if you prefer, but it isn't required.

Existing groups: these are not matched by name. A manually created account group with the same name as an Entra group won't be linked automatically, and its Entra memberships won't sync. To link them, update each existing Databricks group's externalId to the Entra group's objectId, using the Account Groups (or Account SCIM) API. The group keeps the same Databricks ID, so its workspace assignments and Unity Catalog grants carry over. AIM doesn't manage workspace-local groups, so migrate those to account groups first.
Before you enable AIM, run the AIM readiness report. It lists the users and groups whose externalId is missing or doesn't match Entra, so you know exactly which groups need updating.

New users and groups: yes, they come across, but AIM works on demand rather than pushing everything up front like SCIM. A new user is created the first time they sign in, or when an admin adds them. A new group becomes available in Databricks when you add it to the account, assign it to a workspace, or share something with it. Group members are added as they become active in Databricks.
I'd suggest testing with one or two groups first to check that grants and memberships behave as expected, then rolling out to the rest.

Thanks again for raising it.

Cheers,
Nina

References
Nina Thoni
Databricks Senior Solutions Engineer

Andrew_Barlow
New Contributor II

Thanks Nina - this was really helpful.