How access rules work
In Cloud Trino, user access is managed by rules for objects: catalogs, schemas, and tables. These rules define which SQL commands a user can execute.
- Rules are applied separately for catalogs, schemas, and tables. If rules are configured only for catalogs, access to schemas and tables will be granted to all users.
- If there are no rules for an object type at all, access at that level is granted to all users.
- If at least one rule is set for an object type, Cloud Trino applies the first matching rule from top to bottom; rules below are not considered. If there are no matches, access will be denied.
To execute SQL commands, the user needs to add an access rule with specific privileges (permissions) for the corresponding object type: catalog, schema, or table. The required privileges for each command are listed in the table .
SQL command | Catalog privilege | Schema access | Table privilege | Comment |
|---|---|---|---|---|
| Not required | Not required | Not required | The command can be executed without special privileges |
|
| Not required | Any value | Allowed if the catalog is accessible to the user |
|
| Not required | Any value | Allowed if the schemas are accessible to the user |
|
| Required | Not required | |
|
| Required | Not required | |
|
| Required | Not required | |
|
| Required | Not required | Access to both the old and new schemas is required |
|
| Required | Not required | Access to both the old and new schemas is required |
|
| Not required |
| |
|
| Not required |
| |
|
| Not required |
| The |
|
| Not required |
| |
|
| Not required |
| |
|
| Not required |
| |
|
| Not required |
| The |
|
| Not required |
| |
|
| Not required |
| |
|
| Not required |
| |
|
| Not required |
| |
|
| Not required |
| |
|
| Not required |
| |
|
| Not required |
| |
|
| Not required |
| |
|
| Not required |
| |
|
| Not required |
| |
|
| Not required |
| |
|
| Not required |
|