Show Granted Permissions
Function
Displays the permissions that have been granted to a user on a resource.
Syntax
SHOW GRANT USER user_name ON resource;
Keywords
USER: Specifies that the following user_name is a user.
Precautions
resource can be a database, table, column, view, or function. The formats are as follows:
- Database format: databases.db_name.
- Table format: databases.db_name.tables.table_name.
- Column format: databases.db_name.tables.table_name.columns.column_name.
- View format: databases.db_name.tables.view_name.
- Function format: databases.db_name.functions.function_name.
Example
Display the permissions of user user_name1 on database db1.
SHOW GRANT USER user_name1 ON databases.db1;
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot