Skip to main content

vw_federation_policies

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

Overview

Namevw_federation_policies
TypeView
Iddatabricks_account.oauth2.vw_federation_policies

Fields

The following fields are returned by this view:

NameDatatypeDescription
account_idstringDatabricks account ID used to scope the query.
policy_idstringUnique identifier for the federation policy.
uidstringGlobally unique identifier for the federation policy.
namestringHuman-readable name of the federation policy.
descriptionstringOptional description of the federation policy.
service_principal_idintegerID of the service principal this federation policy is associated with.
create_timestringTimestamp when the federation policy was created (ISO 8601).
update_timestringTimestamp when the federation policy was last updated (ISO 8601).
oidc_issuerstringOIDC token issuer URL for the federation policy.
oidc_subjectstringExpected subject claim value in the OIDC token.
oidc_subject_claimstringName of the claim in the OIDC token used as the subject identifier.
oidc_audiencesarrayList of acceptable audience values in the OIDC token.
oidc_jwks_uristringURI of the JWKS endpoint used to verify the OIDC token signature.
oidc_jwks_jsonstringInline JWKS JSON used to verify the OIDC token signature (alternative to jwks_uri).

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,
policy_id,
uid,
name,
description,
service_principal_id,
create_time,
update_time,
oidc_issuer,
oidc_subject,
oidc_subject_claim,
oidc_audiences,
oidc_jwks_uri,
oidc_jwks_json
FROM databricks_account.oauth2.vw_federation_policies
WHERE account_id = '{{ account_id }}';

SQL Definition

SELECT
fp.account_id,
fp.policy_id,
fp.uid,
fp.name,
fp.description,
fp.service_principal_id,
fp.create_time,
fp.update_time,
JSON_EXTRACT(fp.oidc_policy, '$.issuer') AS oidc_issuer,
JSON_EXTRACT(fp.oidc_policy, '$.subject') AS oidc_subject,
JSON_EXTRACT(fp.oidc_policy, '$.subject_claim') AS oidc_subject_claim,
JSON_EXTRACT(fp.oidc_policy, '$.audiences') AS oidc_audiences,
JSON_EXTRACT(fp.oidc_policy, '$.jwks_uri') AS oidc_jwks_uri,
JSON_EXTRACT(fp.oidc_policy, '$.jwks_json') AS oidc_jwks_json
FROM databricks_account.oauth2.account_federation_policy fp
WHERE account_id = '{{ account_id }}'