Overview
The following are the LakeFormation permissions required for end users to create or manage datasets.
| Permission | Enum Value | Grant Level | Use Case | Corresponding AccessLabel | Corresponding Spark SQL |
|---|---|---|---|---|---|
| ALL | PermissionType.ALL | Dataset | All permissions (including READ_DATASET + WRITE_DATASET) | W | ALTER DATASET, DROP DATASET, DESCRIBE DATASET, COMMENT ON DATASET |
| READ_DATASET | PermissionType.READ_DATASET | Dataset | View Dataset Metadata | R | DESCRIBE DATASET |
| WRITE_DATASET | PermissionType.WRITE_DATASET | Dataset | Modify Dataset, Delete Dataset | W | DROP DATASET, COMMENT ON DATASET |
| CREATE_DATASET | PermissionType.CREATE_DATASET | Database | Create a Dataset under Database | — | CREATE DATASET |
| LIST_DATASET | PermissionType.LIST_DATASET | Database | List Datasets under Database | — | SHOW DATASETS |
Listing all datasets:
If a database does not have the LIST_DATASET permission, datasets with the READ_DATASET permission are returned. If a database has the LIST_DATASET permission, all datasets are returned.
Query support:
When a user reads files from a specific dataset in a specified format, the user must have the READ_DATASET permission on that dataset. The user should also have URI permissions on the dataset location to read files within the dataset location.
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