Hello Mike
I understand that you would like to restrict SFTP users in Azure Blob Storage so they can only access their designated folders.
To limit SFTP users' access in Azure Blob Storage to their specific folders, it is essential to assign a home directory for each user. This configuration ensures that users remain confined to their individual directories, thereby preventing access to the folders of other users.
- Firstly, verify that the Hierarchical Namespace feature is activated for your Azure Storage account, as this enables access control at the directory level. Establish local SFTP users within the Azure Portal by navigating to the SFTP settings of your storage account. It is essential to assign each user a distinct home directory that aligns with their specific sub-folder.
- Post which Establishes a well-defined directory structure for your storage account. It is advisable for each user to possess an individual sub-folder within the main container. Use Azure Role-Based Access Control (RBAC) to assign permissions at the folder level. Assign roles such as "Storage Blob Data Contributor" specifically to the user's sub-folder, ensuring they have access only to their designated area.
- Establish Access Control Lists (ACLs) for the folder of each user to specify their individual permissions, such as Read, Write, and List. This configuration can be accomplished via the Azure Portal or by utilizing the Azure Command-Line Interface (CLI).After setting up the users and permissions, log in using an SFTP client like FileZilla to verify that users can only see their own folders and not others. If users can still see other folders, double-check the RBAC role assignments and ACL settings to ensure they are correctly applied. Hope the above answer helps! Please let us know do you have any further queries.
Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.