SHOW DEFAULT PRIVILEGES lists the for the objects created by in the current database.
Synopsis
Parameters
| Parameter | Description |
|---|---|
FOR ROLE name/FOR USER name | List the default privileges on objects created by a specific user/role, or a list of users/roles. |
FOR GRANTEE name | Show the default privileges that user name received as a grantee. For more information, see Show default privileges for a grantee. |
FOR ALL ROLES | List the default privileges on objects created by any user/role. |
If you do not specify a
FOR ... clause, CockroachDB returns the default privileges on objects created by the current user.
