Schema:

ACCOUNT_USAGE

ROLES View

This Account Usage view can be used to query a list of all roles defined in the account. The data is retained for 365 days (1 year).

Columns

Column Name

Data Type

Description

CREATED_ON

TIMESTAMP_LTZ

Date and time (in the UTC time zone) when the role was created.

DELETED_ON

TIMESTAMP_LTZ

Date and time (in the UTC time zone) when the role was deleted.

NAME

VARCHAR

Name of the role.

COMMENT

VARCHAR

Comment for the role.

OWNER

VARCHAR

Role with the OWNERSHIP privilege on the object.

ROLE_TYPE

TEXT

Either ROLE or DATABASE_ROLE.

ROLE_DATABASE_NAME

TEXT

Name of the database that contains the database role if the role is a database role.

Usage Notes

  • Latency for the view may be up to 120 minutes (2 hours).

Internal Snowflake Role for Snowsight

The first time Snowsight is accessed in an account, Snowflake creates the internal APPADMIN and WORKSHEETS_APP_RL roles to support the web interface. These roles are used to cache query results in an internal stage in your account. This cached data is encrypted and protected by the key hierarchy for the account. The limited privileges granted to these internal roles only allow Snowsight to access the internal stage to store those results. Thes roles cannot list objects in your account or access data in your tables. For more information, see Getting Started With Snowsight.