/ai-platform-kit:databricks-identity-governancefrom ai-platform-kit
Manages Databricks identity and governance including groups, users, service principals, RBAC, permissions, and workspace assignments. Enforces account-level SCIM groups and group-only grants for Unity Catalog.
Ships in ai-platform-kit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Apply LIGHT pushback on identity decisions, with hard rules on UC identity requirements.
Before you create, modify, or delete any remote identity resource (account/workspace group, user, service principal, role assignment, grant, permission -- any terraform apply or databricks ... create|delete|update), present ONE plan and get explicit approval:
--profile (or host), and the cloud.terraform plan), not one prompt per resource.This governs what gets changed, not design choices (naming, hierarchy). It is the default for interactive use; auto-approve / headless mode is the customer's choice and responsibility (see SECURITY.md).
These are not suggestions. Violating them causes silent failures or security gaps.
ALL_PRIVILEGES on the catalog, MANAGE on external locations, and MANAGE on storage credentials — OR transfer ownership to that group. Otherwise the customer's human admins log in to a workspace where they can't see their own catalog.This is the default recommendation for multi-environment deployments. Adjust based on customer needs.
| Group | Dev | Stg | Prod |
|---|---|---|---|
| platform-admins | ADMIN, ALL_PRIVILEGES | ADMIN, ALL_PRIVILEGES | ADMIN, ALL_PRIVILEGES |
| data-engineers | USER, full CRUD | USER, full CRUD | USER, full CRUD |
| data-analysts | -- | USER, read silver/gold | USER, read silver/gold |
| data-scientists | USER, full CRUD | USER, read only | -- |
| ml-ops | USER, read+write | USER, read | USER, read |
Create groups at the account level. These are visible across all UC-enabled workspaces automatically.
Account console URLs by cloud:
Before creating, list existing groups to avoid conflicts. Account-level groups persist even after workspaces are deleted.
Create users at the account level via SCIM. Users need a valid email (userName) and displayName.
Add users as members of the appropriate groups. A user can belong to multiple groups. Group membership determines all access -- workspace assignment, catalog grants, schema permissions.
Create one SP per environment for CI/CD pipelines:
{prefix}-cicd-dev{prefix}-cicd-stg{prefix}-cicd-prodEach SP gets added to the appropriate groups for its environment (e.g., cicd-dev joins data-engineers in dev workspace).
Create a single platform admin SP for infrastructure automation:
{prefix}-platform-admin-spAdd this SP to the platform-admins group. It manages metastores, workspace config, and cross-environment operations.
Assign groups and users to specific workspaces with a permission level (USER or ADMIN).
On workspaces with identity federation enabled, databricks_mws_permission_assignment does not work — the API returns "APIs not available." Account-level groups are visible in workspaces automatically via identity federation — no explicit assignment needed. This affects Azure (always) and many newer AWS/GCP workspaces. Check if your workspace has identity federation enabled before adding permission assignment resources. If you get the error, simply remove them.
Grant permissions at the catalog and schema level to groups. Never to individual users.
Use modern privilege names only. Legacy names (e.g., USAGE instead of USE_CATALOG) cause confusing errors.
databricks_grants per securable — never twoThe Databricks databricks_grants resource is authoritative for the entire ACL of a single securable (catalog, schema, external_location, storage_credential, etc.). If you write two databricks_grants resources targeting the same securable — say one for the human admin group and another for account users — they race during terraform apply and the second one fails:
permissions for <principal> are [USE_CATALOG, ...] but have to be [USE_CATALOG, ..., MODIFY, ...]
The provider re-reads after applying the first resource, sees a state delta from the second's intended ACL, and rejects. The race is inherent to the resource's "I own the whole ACL" semantics — not a TF parallelism bug.
Wrong (will race):
resource "databricks_grants" "admins_on_catalog" {
catalog = databricks_catalog.this.name
grant { principal = var.human_admin_group, privileges = ["ALL_PRIVILEGES"] }
}
resource "databricks_grants" "users_on_catalog" { # SAME securable, second resource
catalog = databricks_catalog.this.name
grant { principal = "account users", privileges = ["USE_CATALOG"] }
}
Right — one resource per securable, multiple grant {} blocks:
resource "databricks_grants" "catalog" {
catalog = databricks_catalog.this.name
grant { principal = var.human_admin_group, privileges = ["ALL_PRIVILEGES"] }
grant { principal = "account users", privileges = ["USE_CATALOG"] }
}
Permitted exception: two databricks_grants resources can coexist if they target different securables (e.g. one for the catalog, one for an external_location of the same catalog). The earlier "human admins" example in this skill (catalog + external_location) is fine because the securables differ.
Customers sometimes hand you a literal placeholder string for the Databricks account ID — xxxxxxxx-xxxx-..., abcd1234, <your-account-id>, or just a free-text "I don't have it handy, use the default". All of those should fail the intake check, not the apply. Account IDs are UUIDs (8-4-4-4-12 hex). Anything that doesn't match [0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12} is a placeholder.
When this happens, do NOT plug a "well-known" account ID from a prior deploy without confirming. Either:
accounts.cloud.databricks.com or accounts.azuredatabricks.net → top-right user menu → "Account ID"), ORdatabricks current-user me --profile <my-account-profile> — config block has account_id).A wrong account ID can make the apply succeed against the wrong account silently — far worse than a hard failure on a placeholder.
GET /api/2.0/accounts/{id}/scim/v2/Groups before creating. If the group exists, use data.databricks_group (data source) instead of databricks_group (resource) in Terraform. Alternatively, delete the stale group via SCIM API if it's from a previous deployment. Do NOT blindly create groups without checking — SCIM conflicts halt the entire terraform apply.databricks_permissions for a freshly-created account group -- account-level SCIM groups created in the same terraform apply are visible to the UC plane (databricks_grants) immediately, but the workspace ACL plane (databricks_permissions on sql_endpoint, cluster, job, etc.) takes 5–10 minutes to see the new group. Symptom: UC grants succeed, then a workspace-resource grant a few resources later fails with "Principal: GroupName(name=...) does not exist". Three fixes: (a) use databricks_grants only and let the customer set workspace-resource permissions in the UI later, (b) add time_sleep { create_duration = "10m" } between the group creation and the databricks_permissions resource, or (c) split into two terraform apply runs (group + UC grants in run 1, workspace ACLs in run 2).databricks account groups list --output json | jq '.[] | select(.displayName == "X")' before deciding to use data.databricks_group vs databricks_group. If the group genuinely doesn't exist yet in the Databricks account, create it with databricks_group and bring the customer along.resource "databricks_grants" "human_admins_on_catalog" {
catalog = databricks_catalog.this.name
grant {
principal = var.human_admin_group # account-level SCIM group containing humans
privileges = ["ALL_PRIVILEGES"]
}
}
resource "databricks_grants" "human_admins_on_external_location" {
external_location = databricks_external_location.this.name
grant {
principal = var.human_admin_group
privileges = ["MANAGE", "BROWSE", "READ_FILES", "WRITE_FILES", "CREATE_EXTERNAL_TABLE", "CREATE_MANAGED_STORAGE"]
}
}
Or transfer ownership via databricks_metastore.this.owner = var.human_admin_group for the metastore root, and databricks_catalog.this.owner / databricks_external_location.this.owner for child objects.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Generated from the plugin's indexed repository (databricks-solutions/ai-platform-kit) — no native marketplace selected
npx claudepluginhub p/databricks-solutions-databricks-platform-kit6 skills in this plugin
/databricks-deployment-verificationMANDATORY post-deployment verification. After any workspace + Unity Catalog deployment, you MUST run all THREE compute paths against a UC table — classic cluster, serverless SQL warehouse, serverless notebook job. Skipping any of the three is incomplete work. Use whenever a workspace + UC has been freshly deployed or modified./databricks-platform-provisioningProvision and test Databricks workspaces. Use when the user asks to create a workspace, set up a new environment, provision infrastructure, bootstrap Databricks, test a workspace, verify a deployment, or run validation checks against a Databricks workspace. Covers Azure, AWS, and GCP./databricks-private-networkingSet up private networking for Databricks. Use when the user asks about private link, hub-spoke architecture, NCC (Network Connectivity Configuration), serverless connectivity to private resources, VPC endpoints, or private endpoints./databricks-unity-catalog-setupSet up Unity Catalog on Databricks workspaces. Use when the user asks to configure Unity Catalog, create a metastore, set up catalogs, schemas, external locations, storage credentials, or configure data governance. Covers Azure, AWS, and GCP./databricks-workspace-configConfigure Databricks workspace settings. Use when the user asks to create SQL warehouses, cluster policies, secret scopes, IP access lists, manage tokens, update workspace settings, or destroy infrastructure.Other plugins' skills for the same job