Note
This view is introduced in V4.3.5 BP3.
Purpose
Displays users or roles that have the privilege to access the plaintext data associated with a sensitive rule in all tenants.
Columns
| Column | Type | Nullable? | Description |
|---|---|---|---|
| TENANT_ID | int(20) | NO | The ID of the tenant. |
| RULE_NAME | varchar(256) | NO | The name of the sensitive rule. |
| USER_NAME | varchar(128) | NO | The name of the user. |
| USER_TYPE | varchar(4) | NO | The type of the user. Valid values: USER and ROLE. USER indicates a user, and ROLE indicates a role. |
Sample query
Query all users and roles that have the privilege to access the plaintext data associated with a sensitive rule in all tenants.
obclient [oceanbase]> SELECT * FROM oceanbase.CDB_OB_SENSITIVE_RULE_PLAINACCESS_USERS;
The query result is as follows:
+-----------+-----------+-----------+-----------+
| TENANT_ID | RULE_NAME | USER_NAME | USER_TYPE |
+-----------+-----------+-----------+-----------+
| 1 | r1 | root | USER |
+-----------+-----------+-----------+-----------+
1 row in set