Skip to main content

CREDENTIALS

Applies to: check marked yes Databricks Runtime 15.4 and above

INFORMATION_SCHEMA.CREDENTIALS describes credentials.

Information is displayed only for credentials the user has permission to interact with.

This is an extension to the SQL Standard Information Schema.

Definition

The CREDENTIALS relation contains the following columns:

NameData typeNullableDescription
CREDENTIAL_IDSTRINGNoID of the credential.
CREDENTIAL_NAMESTRINGNoName of the credential.
CREDENTIAL_OWNERSTRINGNoOwner of the credential.
CREDENTIAL_PURPOSESTRINGNoPurpose of the credential (‘STORAGE’ or ‘SERVICE’)
CREDENTIAL_TYPESTRINGNoType of the credential.
CREDENTIALSTRINGNoRedacted credential.
USED_FOR_MANAGED_STORAGESTRINGNoWhether this credential is used as the root credential of the metastore.
COMMENTSTRINGYesAn optional comment that describes the credential.
CREATEDTIMESTAMPNoTimestamp when the credential was created.
CREATED_BYSTRINGNoPrincipal who created the credential.
LAST_ALTEREDTIMESTAMPNoTimestamp when the credential was last altered in any way.
LAST_ALTERED_BYSTRINGNoPrincipal who last altered the credential.

Constraints

The following constraints apply to the CREDENTIALS relation:

ClassNameColumn listDescription
Primary keyCREDENTIALS_PKCREDENTIAL_ID, CREDENTIAL_NAMEUnique identifier for the credential.

Examples

SQL
> SELECT credential_owner
FROM information_schema.credentials