Skip to main content

account_groups

Creates, updates, deletes, gets or lists an account_groups resource.

Overview

Nameaccount_groups
TypeResource
Iddatabricks_account.iam.account_groups

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringDatabricks group ID
account_idstring
displayNamestringString that represents a human-readable group name
externalIdstringexternal_id should be unique for identifying groups
membersarray
metaobjectContainer for the group identifier. Workspace local versus account.
rolesarrayIndicates if the group has the admin role.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
account_groups_v2_getselectaccount_id, idGets the information for a specific group in the Databricks account.
account_groups_v2_listselectaccount_idattributes, count, excluded_attributes, filter, sort_by, sort_order, start_indexGets all details of the groups associated with the Databricks account. As of 08/22/2025, this endpoint
account_groups_v2_createinsertaccount_idCreates a group in the Databricks account with a unique name, using the supplied group details.
account_groups_v2_patchupdateaccount_id, idPartially updates the details of a group.
account_groups_v2_updatereplaceaccount_id, idUpdates the details of a group by replacing the entire group entity.
account_groups_v2_deletedeleteaccount_id, idDeletes a group from the Databricks account.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
account_idstring
idstringUnique ID for a group in the Databricks account.
attributesstringComma-separated list of attributes to return in response.
countintegerDesired number of results per page. Default is 10000.
excluded_attributesstringComma-separated list of attributes to exclude in response.
filterstringQuery by which the results have to be filtered. Supported operators are equals(eq), contains(co), starts with(sw) and not equals(ne). Additionally, simple expressions can be formed using logical operators - and and or. The [SCIM RFC] has more details but we currently only support simple expressions. [SCIM RFC]: https://tools.ietf.org/html/rfc7644#section-3.4.2.2
sort_bystringAttribute to sort the results.
sort_orderstringThe order to sort the results.
start_indexintegerSpecifies the index of the first result. First item is number 1.

SELECT examples

Gets the information for a specific group in the Databricks account.

SELECT
id,
account_id,
displayName,
externalId,
members,
meta,
roles
FROM databricks_account.iam.account_groups
WHERE account_id = '{{ account_id }}' -- required
AND id = '{{ id }}' -- required
;

INSERT examples

Creates a group in the Databricks account with a unique name, using the supplied group details.

INSERT INTO databricks_account.iam.account_groups (
displayName,
externalId,
id,
members,
meta,
roles,
account_id
)
SELECT
'{{ displayName }}',
'{{ externalId }}',
'{{ id }}',
'{{ members }}',
'{{ meta }}',
'{{ roles }}',
'{{ account_id }}'
RETURNING
id,
account_id,
displayName,
externalId,
members,
meta,
roles
;

UPDATE examples

Partially updates the details of a group.

UPDATE databricks_account.iam.account_groups
SET
Operations = '{{ Operations }}',
schemas = '{{ schemas }}'
WHERE
account_id = '{{ account_id }}' --required
AND id = '{{ id }}' --required;

REPLACE examples

Updates the details of a group by replacing the entire group entity.

REPLACE databricks_account.iam.account_groups
SET
displayName = '{{ displayName }}',
externalId = '{{ externalId }}',
members = '{{ members }}',
meta = '{{ meta }}',
roles = '{{ roles }}'
WHERE
account_id = '{{ account_id }}' --required
AND id = '{{ id }}' --required;

DELETE examples

Deletes a group from the Databricks account.

DELETE FROM databricks_account.iam.account_groups
WHERE account_id = '{{ account_id }}' --required
AND id = '{{ id }}' --required
;