SYSTEM$CLEANUP_DATABASE_ROLE_GRANTS

functionsupportedAccess control (grants, roles)

docs.snowflake.com ↗

System functions

Revokes privileges on dropped objects from the share and grants the database role to the share.

Syntax

SYSTEM$CLEANUP_DATABASE_ROLE_GRANTS( '<database_role_name>' , '<share_name>' )

Parameters

NameRequiredDescription
'database_role_name'requiredThe name of the database role. If the identifier is not fully qualified in the form of db_name.database_role_name, the command uses the database role in the current database for the session.
'share_name'requiredThe name of the share.

Usage notes

Access control requirements

To call this function, the active role must have the global MANAGE GRANTS privilege.

Example

Call the function: