Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save abij/c234b3437a770376ba34081281687bb7 to your computer and use it in GitHub Desktop.
Save abij/c234b3437a770376ba34081281687bb7 to your computer and use it in GitHub Desktop.
Create new Databricks Account-level group with admin permissions
# Use the databricks-cli
#
# 1. Login as account-admin into Account Console
# 2. Save into profile "ACCOUNT"
#
# databricks auth login --profile ACCOUNT --host https://accounts.azuredatabricks.net --account-id 1234-2134-1234-1234
databricks account --profile ACCOUNT groups create --json @databricks-account-console-admin-group.json --output json > created.json
# Use jq to get the Id of the group:
group_id=$(cat created.json | jq -r ".id")
# Show current value of the group:
databricks account --profile ACCOUNT groups get $group_id
{
"displayName": "Databricks Account Admins",
"roles": [{"type": "direct", "value": "account_admin"}],
"schemas": ["urn:ietf:params:scim:schemas:core:2.0:Group"]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment