Skip to main content

vw_account_group_roles

Creates, updates, deletes, gets or lists a vw_account_group_roles resource.

Overview

Namevw_account_group_roles
TypeView
Iddatabricks_account.iam.vw_account_group_roles

Fields

The following fields are returned by this view:

NameDatatypeDescription
account_idstringDatabricks account ID used to scope the query.
idstringUnique identifier for the account group.
displayNamestringHuman-readable display name of the account group.
rolestringRole assigned to the group (one row per role assignment).

Required Parameters

The following parameters are required by this view:

NameDatatypeDescription
account_idstringDatabricks account ID used to scope the query.

SELECT Examples

SELECT
account_id,
id,
displayName,
role
FROM databricks_account.iam.vw_account_group_roles
WHERE account_id = '{{ account_id }}';

SQL Definition

SELECT
g.account_id,
g.id,
g.displayName,
JSON_EXTRACT(r.value, '$.value') AS role
FROM databricks_account.iam.account_groups g,
JSON_EACH(g.roles) r
WHERE account_id = '{{ account_id }}'