Skip to main content

identity_visibility_filters

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

Overview​

Nameidentity_visibility_filters
TypeResource
Iddatabricks_account.iamv2.identity_visibility_filters

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringThe resource name of the identity-visibility filter. Format: accounts/{account_id}/identity-visibility-filters/{identity_visibility_filter_id}
â–¶exactobjectExact match on the group's external ID from the identity provider.
â–¶prefixobjectCase-sensitive starts-with match on the group's display name.
principal_typestringThe type of principal this rule applies to. Set to ``GROUP`` when creating a filter. Other principal types are not supported for creation. (GROUP, SERVICE_PRINCIPAL, USER)
â–¶regexobjectFull, case-sensitive RE2 match on the identity's display name.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectaccount_id, identity_visibility_filter_id, account_hostGets a group visibility filter by its resource name. Requires account admin privileges. Returns the
listselectaccount_id, account_hostpage_size, page_tokenLists group visibility filters in the account, returning one page per call. Requires account admin
createinsertaccount_id, account_host, principal_typeidentity_visibility_filter_idCreates a group visibility filter in the account. Requires account admin privileges. Set
deletedeleteaccount_id, identity_visibility_filter_id, account_hostDeletes a group visibility filter by its resource name. Requires account admin privileges. Deleting a

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_hoststringThe Databricks account console host. Selected by DATABRICKS_CLOUD (aws, azure or gcp; default aws), or set explicitly with DATABRICKS_ACCOUNT_HOST (bare host, no scheme). (default: accounts.cloud.databricks.com, x-stackQL-envVar: DATABRICKS_ACCOUNT_HOST, x-stackQL-envVarSelector: {"envVar":"DATABRICKS_CLOUD","default":"aws","values":{"aws":"accounts.cloud.databricks.com","azure":"accounts.azuredatabricks.net","gcp":"accounts.gcp.databricks.com"}})
account_idstringThe account_id segment of the name resource name (accounts/{account_id}/identity-visibility-filters/{identity_visibility_filter_id}). Required. The resource name of the filter. Format: accounts/{account_id}/identity-visibility-filters/{identity_visibility_filter_id}
identity_visibility_filter_idstringThe identity_visibility_filter_id segment of the name resource name (accounts/{account_id}/identity-visibility-filters/{identity_visibility_filter_id}). Required. The resource name of the filter. Format: accounts/{account_id}/identity-visibility-filters/{identity_visibility_filter_id}
identity_visibility_filter_idstringOptional. The ID to use for the filter, which becomes the final component of its resource name. If not specified or empty, the server generates one. Must not contain /.
page_sizeintegerThe maximum number of filters to return. The service may return fewer than this value. If omitted or non-positive, defaults to 100. Values above 1000 are reduced to 1000.
page_tokenstringA page token, received from a previous ListIdentityVisibilityFilters call. Provide this to retrieve the subsequent page.

SELECT examples​

Gets a group visibility filter by its resource name. Requires account admin privileges. Returns the

SELECT
name,
exact,
prefix,
principal_type,
regex
FROM databricks_account.iamv2.identity_visibility_filters
WHERE account_id = '{{ account_id }}' -- required
AND identity_visibility_filter_id = '{{ identity_visibility_filter_id }}' -- required
AND account_host = '{{ account_host }}' -- required
;

INSERT examples​

Creates a group visibility filter in the account. Requires account admin privileges. Set

INSERT INTO databricks_account.iamv2.identity_visibility_filters (
principal_type,
exact,
name,
prefix,
regex,
account_id,
account_host,
identity_visibility_filter_id
)
SELECT
'{{ principal_type }}' /* required */,
'{{ exact }}',
'{{ name }}',
'{{ prefix }}',
'{{ regex }}',
'{{ account_id }}',
'{{ account_host }}',
'{{ identity_visibility_filter_id }}'
RETURNING
name,
exact,
prefix,
principal_type,
regex
;

DELETE examples​

Deletes a group visibility filter by its resource name. Requires account admin privileges. Deleting a

DELETE FROM databricks_account.iamv2.identity_visibility_filters
WHERE account_id = '{{ account_id }}' --required
AND identity_visibility_filter_id = '{{ identity_visibility_filter_id }}' --required
AND account_host = '{{ account_host }}' --required
;