Unable to add users to Azure AD–synced Databricks group via SCIM (InternalError)

discuss_darende
New Contributor III

Hi everyone,

I’m trying to add users to an existing Databricks group programmatically using the Databricks SDK (SCIM PATCH), but I consistently hit an internal error and can’t tell if this is expected behavior or a limitation.

My main goal is adding users to groups over code somehow that's the code I was trying

 

from databricks.sdk import WorkspaceClient
from databricks.sdk.service.iam import Patch, PatchOp

w = WorkspaceClient()

w.groups.patch(
id=GROUP_ID,
operations=[
Patch(
op=PatchOp.ADD,
path=f'members[value eq "{USER_ID}"]'
)
],
)