--- title: "SHOW DEFAULT PRIVILEGES" description: "SHOW DEFAULT PRIVILEGES lists the default privileges granted on objects in Materialize." menu: main: parent: 'commands' --- `SHOW DEFAULT PRIVILEGES` lists the default privileges granted on objects in Materialize. ## Syntax ```sql SHOW DEFAULT PRIVILEGES [ON ] [FOR ] ``` Option | Description -----------------------------|-------------------------------------------------- **ON** | If specified, only show default privileges for the specified object type. Accepted object types:
  • CLUSTERS
  • CONNECTION
  • DATABASES
  • SCHEMAS
  • SECRETS
  • TABLES
  • TYPES
**FOR** | If specified, only show default privileges granted directly or indirectly to the specified role. For available role names, see [`SHOW ROLES`](/sql/show-roles). [//]: # "TODO(morsapaes) Improve examples." ## Examples ```mzsql SHOW DEFAULT PRIVILEGES; ``` ```nofmt object_owner | database | schema | object_type | grantee | privilege_type --------------+----------+--------+-------------+---------+---------------- PUBLIC | | | cluster | interns | USAGE PUBLIC | | | schema | mike | CREATE PUBLIC | | | type | PUBLIC | USAGE mike | | | table | joe | SELECT ``` ```mzsql SHOW DEFAULT PRIVILEGES ON SCHEMAS; ``` ```nofmt object_owner | database | schema | object_type | grantee | privilege_type --------------+----------+--------+-------------+---------+---------------- PUBLIC | | | schema | mike | CREATE ``` ```mzsql SHOW DEFAULT PRIVILEGES FOR joe; ``` ```nofmt object_owner | database | schema | object_type | grantee | privilege_type --------------+----------+--------+-------------+---------+---------------- PUBLIC | | | cluster | interns | USAGE PUBLIC | | | type | PUBLIC | USAGE mike | | | table | joe | SELECT ``` ## Related pages - [`ALTER DEFAULT PRIVILEGES`](../alter-default-privileges) - [Access control](/manage/access-control/#role-based-access-control-rbac)