SHOW FEATURE POLICIES

statementsupportedGovernance (policies, tags, data quality)

docs.snowflake.com ↗

Object: FEATURE POLICY

Lists the feature policies for which you have access privileges.

Syntax

supportedpartialnot supportednot scored

SHOW FEATURE POLICIES
  [ IN
    {
      ACCOUNT                                        |
      APPLICATION {app_name}                         |
      APPLICATION PACKAGE {app_package_name}         |
      DATABASE {database_name}                       |
      SCHEMA {schema_name}                           |
    }
  ]

SHOW FEATURE POLICIES ON ACCOUNT

SHOW FEATURE POLICIES ON APPLICATION <application_name>

SHOW FEATURE POLICIES ON DATABASE <database_name>

Parameters

NameRequiredDescription
[ IN ... ]Optionally specifies the scope of the command. Specify one of the following:
  • ACCOUNT — Returns information about feature policies created in the specified account.
APPLICATION app_nameReturns information about feature policies created in the specified app.
APPLICATION PACKAGE app_package_nameReturns information about feature policies created in the specified application package.
DATABASE database_nameReturns information about feature policies created in the specified database.
SCHEMA schema_nameReturns information about feature policies created in the specified schema.
ON ACCOUNTShows the feature policies that have been applied to the current account.
ON APPLICATION app_nameShows the feature policies that have been applied on the specified app. This command also displays feature policies that are inherited from those applied on the account.
ON DATABASE database_nameShows the feature policies that have been applied directly to the specified database.

Access control requirements

A role used to execute this operation must have the following privileges at a minimum: Privilege | Object | Notes OWNERSHIP | Feature policy | This privilege is required to use this command. Operating on an object in a schema requires at least one privilege on the parent database and at least one privilege on the parent schema. 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.

Output

Column | Description created_on | The timestamp when the policy was created. name | The name of the policy. database_name | The name of the database containing the policy. schema_name | The name of the schema containing the policy. kind | The type of feature policy. Currently, only FEATURE_POLICY is supported. owner | The role that owns the feature policy. comment | A comment containing information about the policy. owner_role_type | The type of the role that owns the feature policy. options | Currently, always NULL.

See also

Referenced by