Saturday, February 28, 2015

PowerShell script cannot find user permissions given directly (can find if permissions given in a group) - Please help.

I don't really understand your request. It sounds like you just want to know the permissions per-user



$weburl = "http://dev"
Get-SPUser -web $weburl -Limit All | ?{$_.UserLogin} | select UserLogin, @{name="Url";expression={$_.ParentWeb.Url}}, @{name="Explicit given roles";expression={$_.Roles}}, @{name="Roles given via groups";expression={$_.Groups | %{$_.Roles}}},Groups | Out-String -Width 4096

This will just return all the users and their permissions.



If this is helpful please mark it so. Also if this solved your problem mark as answer.


No comments:

Post a Comment