Hi there,
I need to find ALL SharePOint sites/subsites/locations where "Domain\john" has any level of access.
Following script works if the permissions were given to Domain\john via a group - but this does not work if the permissions were given directly to the user (i.e. user is NOT part of the group).
$weburl = "http://dev" Get-SPUser -web $weburl -Limit All | ?{$_.UserLogin -eq "Domin\john"} | 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
Help will be appreciated.
Thank you.
- Edited by frob 12 hours 19 minutes ago