#SharePoint 2010 #PowerShell: How to get user permissions report

How to check who has access to a particular site in SharePoint

$urlWeb = "http://mycompany/sites/mydepartment"

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

You will get somthing like this output:

NEW VERSION: https://vlasenko.org/2014/05/07/sharepoint-2013-powershell-how-to-get-user-permissions-report/

Advertisements

8 thoughts on “#SharePoint 2010 #PowerShell: How to get user permissions report

  1. Thanks for this post, Konstantin. I needed to filter the users returned based on the types of Roles and did that by adding a where clause using the -match operator like so:

    Get-SPUser -Web $urlWeb -Limit ALL | select UserLogin, @{name=”Roles”;exp={$_.Roles}} | where { $_.Roles -match “Contribute”} | format-Table -auto

    Your post got me going in the right direction. Best regards.
    Jake

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s