2

We validate our SP users against AD, but we use SharePoint groups to control access, not AD groups. Is there a way to search for all of the SharePoint groups a person belongs to? When someone leaves, the previous admins have been going through every group looking for that person and deleting them. I'm pretty sure there's got to be a better way, a webpart or app that can list a user's groups. It can probably be done with PowerShell, but although I'm fairly familiar with PowerShell for server and Exchange, I've never used any SharePoint PowerShell commands. Can anybody point me in the right direction here?

1
  • Single site collection or multiple site collections?
    – Waqas Sarwar MVP
    Commented Dec 20, 2016 at 6:46

1 Answer 1

2

You can do this without Powershell,

  • Just go to site settings > Users and Permissions > Site permissions > From the above ribbon > click on Check permission > type the user account. > This will list all groups that user belongs to on this site.

enter image description here

Meanwhile, If you need to achieve that via PowerShell check the following CMDLET

$urlWeb = "http://Qassas"
Get-SPUser -Web $urlWeb | select UserLogin, @{name="Exlicit given roles";expression={$_.Roles}}, @{name="Roles given via groups";expression={$_.Groups | %{$_.Roles}}},Groups | format-Table 

For more details check Powershell script to find permissions for a specific user

1
  • how to get all the SP groups a specific belongs to across multiple site collections Commented Jan 25 at 1:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.