Note
For V4.6.x, this view is available starting with V4.6.0.
Overview
Displays all users or roles under all tenants that have plaintext data access permissions on columns associated with a sensitive rule.
Columns
Field Name |
Type |
Whether can be NULL |
Description |
|---|---|---|---|
| TENANT_ID | int(20) | NO | Tenant ID |
| RULE_NAME | varchar(256) | NO | Sensitive Rule Name |
| USER_NAME | varchar(128) | NO | Username |
| USER_TYPE | varchar(4) | NO | User type. Valid values:USERorROLE.USERRepresents a user,ROLERepresents a role. |
Sample query
Query users or roles with plaintext data access permissions on columns associated with a sensitive rule across 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
