DBMS USER METADATA MANAGEMENT privilegesAuraDB Business CriticalAuraDB Virtual Dedicated CloudEnterprise EditionIntroduced in 2026.06
The DBMS privileges for user metadata management control who can administer and view user tags. They can be granted, denied, or revoked like other privileges.
USER METADATA MANAGEMENT has two sub-privileges: SET USER METADATA and SHOW USER METADATA.
Granting USER METADATA MANAGEMENT automatically grants both sub-privileges.
The user metadata privileges are required in addition to the existing privileges needed for the containing commands:
-
SET USER METADATAis needed toSET,ADD, orREMOVEtags. The privileges required for the containing commands (CREATE USERandALTER USER) are unchanged and are still needed in addition toSET USER METADATA. -
SHOW USER METADATAis needed to see tags via theSHOW USERSandSHOW CURRENT USERcommands. The privilege required to runSHOW USERSis unchanged and is still needed in addition toSHOW USER METADATAin order to show users with their metadata.
|
|
The semantics of how these privileges interact with the attribute and tag administration commands are covered in the Creating users, Modifying users, and Showing users sections.
|
For more details about the syntax descriptions, see Reading the administration commands syntax. |
| Command | Description |
|---|---|
|
Enables the specified roles to set, add, and remove user tags. |
|
Enables the specified roles to view user tags. |
|
Enables the specified roles to set, remove, and view user tags. |
Grant privilege to set user metadata
You can grant the privilege to set, add, and remove user tags using the SET USER METADATA privilege.
For example:
GRANT SET USER METADATA ON DBMS TO userMetadataSetter;
As a result, the userMetadataSetter role has privileges that allow setting user tags.
|
|
To show all privileges for the role userMetadataSetter as commands, use the following query:
SHOW ROLE userMetadataSetter PRIVILEGES AS COMMANDS;
| command |
|---|
|
Rows: 1 |
Grant privilege to show user metadata
You can grant the privilege to view user tags using the SHOW USER METADATA privilege.
For example:
GRANT SHOW USER METADATA ON DBMS TO userMetadataViewer;
As a result, the userMetadataViewer role has privileges that allow viewing user tags.
|
|
To show all privileges for the role userMetadataViewer as commands, use the following query:
SHOW ROLE userMetadataViewer PRIVILEGES AS COMMANDS;
| command |
|---|
|
Rows: 1 |
Grant privilege to manage user metadata
You can grant the privilege to set, remove, and view user tags using the USER METADATA MANAGEMENT privilege.
Granting USER METADATA MANAGEMENT automatically grants both the SET USER METADATA and SHOW USER METADATA sub-privileges.
For example:
GRANT USER METADATA MANAGEMENT ON DBMS TO userMetadataManager;
As a result, the userMetadataManager role has all privileges to manage user metadata.
To show all privileges for the role userMetadataManager as commands, use the following query:
SHOW ROLE userMetadataManager PRIVILEGES AS COMMANDS;
| command |
|---|
|
Rows: 1 |