GRANT_ TO_ PUBLIC_ APPLICATION_ ROLE¶
Restores an administrator-revocable capability on the SNOWFLAKE.PUBLIC application role after you revoke it with
REVOKE_FROM_PUBLIC_APPLICATION_ROLE.
Syntax¶
Arguments¶
'kind'The type of capability:
PRIVILEGE,APP_ROLE, orDB_ROLE. In the output ofSHOW GRANTS TO APPLICATION ROLE SNOWFLAKE.PUBLIC, these correspond to agranted_onvalue ofACCOUNT,APPLICATION_ROLE, orDATABASE_ROLE.'name'The name of the capability. For a privilege, replace spaces with underscores; for example,
USE_AI_FUNCTIONS. For a role, omit theSNOWFLAKE.prefix; for example,CORTEX-MODEL-ROLE-ALL.
Returns¶
Returns a VARCHAR value in the form Granted <name>.
Access control requirements¶
A role must be granted the SNOWFLAKE.SNOWFLAKE_PUBLIC_GRANT_ADMIN application role to call this stored procedure. By default, only
the ACCOUNTADMIN role is granted this application role. ACCOUNTADMIN can grant it to other roles:
Usage notes¶
- The stored procedure returns an error if the capability isn’t administrator-revocable.
- Granting a capability that is already granted succeeds.