Here's the situation. Often I need to tell how a user is getting access to a specific folder. I can see in "Effective permissions" that they have read/write/etc, but because of nested groups I can't immediately tell why.
I'd like a tool/script that I can run that will take the input of a path, and user and tell me how that user has permissions.
Example.
I'm on Server01 and I browse to c:\folder and I see that user MathewC has effective permissions to write, but when I look at the permissions for the folder, I can see that many groups have access to write, but I don't know which of those groups MathewC is a memeber of.
So, the permissions of the folder would look like this:
C:\folder
- Group 01 Read/Write
- Group 02 Read/Write
- Group 03 Read/Write ...
- Group 99 Read/Write
And the tool/script would report back
User MathewC is a memeber of "Group 42" which has Read/Write access.
Or even more complex:
User MathewC is a memeber of "Group humans" which is a member of "Group 42" which has Read/Write access.