information_schema.object_default_privileges view provides information about default privileges that are automatically applied to future objects created by specific roles.
To access this information, you must have one of the following:
MANAGE GRANTSprivilege- Be assigned with the default privileges shown in the view
- Be an account administrator
Columns
Example
The following example shows how to query default privileges for a specific role:Usage notes
- Default privileges apply to objects created after the
ALTER DEFAULT PRIVILEGEScommand is executed. Existing objects are not affected. - Defaults are account-wide and apply to future schemas when databases (and their schemas) are created.
Related commands
- ALTER DEFAULT PRIVILEGES - Modify default privileges for future objects
- GRANT - Grant privileges on existing objects
- REVOKE - Revoke privileges from objects