In your scenario #3, it appears that the issue arises from the way NTFS permissions are being evaluated in conjunction with the permissions assigned to "Authenticated Users." When you changed the ACL for "Authenticated Users" from "Modify" to "Read/List," it restricted access for any users that fall under that category, including your identity if it is part of the "Authenticated Users" group.
Here are some key points to consider:
- NTFS Permissions Hierarchy: NTFS permissions are cumulative, meaning that if a user belongs to multiple groups, they inherit permissions from all those groups. If "Authenticated Users" had previously granted modify permissions, changing it to read/list could restrict access for users who are part of that group, even if they have explicit permissions assigned through IAM or NTFS.
- Explicit vs. Inherited Permissions: If your identity is explicitly granted permissions but is also part of a group that has restricted permissions (like "Authenticated Users"), the most restrictive permission will apply. In this case, since "Authenticated Users" is set to read/list, it overrides the explicit permissions you assigned.
- Testing with Different User Accounts: To isolate the issue, you could test with a user account that is not part of the "Authenticated Users" group to see if the explicit NTFS permissions work as expected. This will help determine if the group membership is affecting access.
- Consider Using More Granular Permissions: If you need to maintain the ability for specific users to modify files while restricting general access, consider creating a dedicated group for those users and assigning permissions accordingly, rather than relying on "Authenticated Users."
- Debugging Tools: Utilize the
Debug-AzStorageAccountAuthcommand to verify that the permissions are being applied as expected and that there are no underlying issues with the authentication or authorization process.
In summary, the behavior you're experiencing in scenario #3 is likely due to the interaction between the NTFS permissions and the group memberships. Adjusting the permissions for "Authenticated Users" or using more granular permissions for specific users may resolve the issue.
References: