Hello PS,
Welcome to the Microsoft Q&A and thank you for posting your questions here.
I understand that you would like to Set different permissions for SAS Token on ADLS Gen2
To achieve different sets of permissions at different levels (container and folder) in Azure Data Lake Storage Gen2 (ADLS Gen2), you'll need to understand and apply both Shared Access Signatures (SAS) and Access Control Lists (ACLs).
- First, Set Up SAS Token for Container-Level Access which will allow access to the entire container with read and list permissions but does not grant write permissions.
- Secondly, Set Up SAS Token for Folder-Level Access which will be used to access a specific folder with Read`, List, and Write permissions.
- Then, apply Access Control Lists (ACLs) for Fine-Grained Control
- Finally, combine SAS Token and ACL to:
- Grants basic Read and List permissions at the container level.
- Allow more specific permissions at the folder level. Ensure the folder-level SAS token and ACLs are applied properly for the desired Read, List, and Write access.
For documentation as requested:
https://docs.microsoft.com/en-us/azure/storage/common/storage-sas-overview
https://docs.microsoft.com/en-us/azure/storage/common/storage-sas-create
https://docs.microsoft.com/en-us/azure/storage/blobs/data-lake-storage-acls-overview
You can also read more from the additional resources available by the right side of this page.
Accept Answer
I hope this is helpful! Do not hesitate to let me know if you have any other questions.
** Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful ** so that others in the community facing similar issues can easily find the solution.
Best Regards,
Sina Salam