SHOW USER WORKLOAD IDENTITY AUTHENTICATION METHODS¶
Lists the workload identity federation settings for a service user.
Syntax¶
Parameters¶
FOR USER usernameLists the workload identity federation settings for the specified user.
If no user is specified, the command lists the settings for the current user.
Output¶
| Column | Description |
|---|---|
name | Name of the workload identity. The workload identity assigned with the WORKLOAD_IDENTITY user property is named DEFAULT. |
type | The identity provider that is issuing attestations for the service user. Possible values are:
|
comment | Comment for the workload identity. Empty when no comment is set. You can set a comment on a named workload identity with ALTER USER … MODIFY WORKLOAD IDENTITY. You can’t set a comment on the DEFAULT workload identity with that command. |
last_used | Date and time when this workload identity was last used to authenticate to Snowflake. |
created_on | Date and time when the workload identity was created. |
additional_info | Additional details about how the service user is configured to use workload identity federation. The details depend on the value in the
|
status | Status of the workload identity. Possible values are ACTIVE and DISABLED. A disabled workload identity can’t be used to authenticate. You can change the status of a named workload identity with ALTER USER … MODIFY WORKLOAD IDENTITY. You can’t change the status of the DEFAULT workload identity with that command. |
Access control requirements¶
A role used to execute this operation must have the following privileges at a minimum:
| Privilege | Object | Notes |
|---|---|---|
| MONITOR | User | Required only when displaying workload identity federation settings for a different service user. |
For instructions on creating a custom role with a specified set of privileges, see Creating custom roles.
For general information about roles and privilege grants for performing SQL actions on securable objects, see Overview of Access Control.
Examples¶
Show workload identity authentication settings for the user example_service_user: