Hi 37821879,
Thanks for reaching out to Microsoft Q&A.
To grant folder permissions in an Azure Data Lake Storage (ADLS) file share, follow these steps:
- Shared Access Signature (SAS):
- Direct access to files stored in a file service is not allowed because the share containing these files has a Private ACL. Unlike blob containers, there’s no way to change the ACL of a share.
- To allow controlled access, create a Shared Access Signature (SAS) on the specific folder you want to grant permissions for.
- When creating the SAS, ensure that at least Read permission is included, as this permission is required to access the folder and its contents.
- You can generate the SAS URL programmatically or through the Azure Portal.
- Using the SAS URL:
- Once you have the SAS URL, you can use it to directly access the folder.
- Construct the access URL by appending the SAS token to the folder’s original URL.
- For example: https://myaccount.file.core.windows.net/myshare/myfolder?mySAStoken
- Replace myaccount, myshare, and myfolder with your actual storage account, file share, and folder names, respectively.
- Azure Storage Explorer (Optional):
- If you prefer a graphical interface, consider using Azure Storage Explorer.
- Download and install the latest version of Azure Storage Explorer.
- Open it, navigate to your file share, select the desired folder, and right-click to manage permissions or generate a SAS URL.
- Remember that the SAS URL provides temporary access, so ensure that it’s used securely and only by authorised parties.
Please 'Upvote'(Thumbs-up) and 'Accept' as an answer if the reply was helpful. This will benefit other community members who face the same issue.