Skip to main content

vw_account_group_members

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

Overview

Namevw_account_group_members
TypeView
Iddatabricks_account.iam.vw_account_group_members

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.
member_idstringUnique identifier of the group member (one row per member).
member_displaystringDisplay name of the group member.
member_refstringSCIM $ref URI for the group member resource.
member_typestringType of the member resource (e.g. User, Group, ServicePrincipal).

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,
member_id,
member_display,
member_ref,
member_type
FROM databricks_account.iam.vw_account_group_members
WHERE account_id = '{{ account_id }}';

SQL Definition

SELECT
g.account_id,
g.id,
g.displayName,
JSON_EXTRACT(m.value, '$.value') AS member_id,
JSON_EXTRACT(m.value, '$.display') AS member_display,
JSON_EXTRACT(m.value, '$.$ref') AS member_ref,
JSON_EXTRACT(m.value, '$.type') AS member_type
FROM databricks_account.iam.account_groups g,
JSON_EACH(g.members) m
WHERE account_id = '{{ account_id }}'