CAN I
Syntax
Description
This command shows whether the current User can execute specific commands in the current Organization.
Arguments
target_name
Name of the object to use for testing authorization for the privilege target. Use this only for testing authorization of a privilege type, — for example, USE
.
Examples
Check whether the user can create a database
Check whether the user can create a query
Check whether the user with the current role can create objects in another role
Check whether user has USAGE privilege on a database
Check whether user can user another role
Check whether user can drop a database
Check whether user can select from an existing relation
Check whether user can insert records into an existing relation
Check whether user can manage grants
Last updated