Details
-
Bug
-
Status: Open (View Workflow)
-
Major
-
Resolution: Unresolved
-
10.4(EOL), 10.5, 10.6, 10.11, 11.0(EOL), 11.1(EOL)
-
None
Description
INFORMATION_SCHEMA has tables COLUMN_PRIVILEGES, TABLE_PRIVILEGES, SCHEMA_PRIVILEGES — they show all users and roles that have privileges on specific objects — columns, tables, or schemas.
Also, it has a table USER_PRIVILEGES — unlike other tables it does not show show privileges on specific users, it shows privileges that specific users have on the global level. And it does not include roles.
Ideally, it should be renamed to GLOBAL_PRIVILEGES and should include both users and roles. Also, ideally, USER_PRIVILEGES would show privileges on users (that is PROXY privilege). But we likely cannot rename the table that existed for 20 years.
So, we either
- add a new table, GLOBAL_PRIVILEGES that shows both users and roles, or
- add roles to USER_PRIVILEGES
Attachments
Issue Links
- relates to
-
MDEV-24486 Easier way to retrieve all users that have privileges on a specific table
- Closed