SHOW FEATURE POLICIES

Lists the feature policies for which you have access privileges.

See also:

CREATE FEATURE POLICY , ALTER FEATURE POLICY, DESCRIBE FEATURE POLICY, DROP FEATURE POLICY

Syntax

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>

Parameters

[ 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_name

Returns information about feature policies created in the specified app.

APPLICATION PACKAGE app_package_name

Returns information about feature policies created in the specified application package.

DATABASE database_name

Returns information about feature policies created in the specified database.

SCHEMA schema_name

Returns information about feature policies created in the specified schema.

ON ACCOUNT

Shows the feature policies that have been applied to the current account.

ON APPLICATION app_name

Shows 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.

Access control requirements

A role used to execute this operation must have the following privileges at a minimum:

PrivilegeObjectNotes
OWNERSHIPFeature policyThis 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

ColumnDescription
created_onThe timestamp when the policy was created.
nameThe name of the policy.
database_nameThe name of the database containing the policy.
schema_nameThe name of the schema containing the policy.
kindThe type of feature policy. Currently, only FEATURE_POLICY is supported.
ownerThe role that owns the feature policy.
commentA comment containing information about the policy.
owner_role_typeThe type of the role that owns the feature policy.
optionsCurrently, always NULL.

Examples

The following example lists the feature policies that you have the privileges to view in the current account:

SHOW FEATURE POLICIES;

The following example lists the feature policies that you have the privileges to view in an app named hello_snowflake_app:

SHOW FEATURE POLICIES IN APPLICATION hello_snowflake_app;

The following example lists the feature policies that have been applied on the current account:

SHOW FEATURE POLICIES ON ACCOUNT