Purpose
This view displays users or roles that have plaintext data access permissions for columns associated with a sensitive rule in all tenants.
Columns
| Column | Type | Nullable | Description |
|---|---|---|---|
| TENANT_ID | int(20) | NO | The tenant ID. |
| 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 users or roles that have plaintext data access permissions for columns 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