In my site, I add user with powershell to a group.

Set-SPUser -Identity $User -Web $siteCollUrl -Group $group  

The user appear in the groupe but when I do a "check permission" on the SharePoint site, there is no result...

  • 2
    Does the group have permissions?
    – wjervis
    Aug 11, 2015 at 13:24
  • What is the group you're adding the user? The group you add user into has any permissions?
    – pealmasa
    Aug 11, 2015 at 14:02

1 Answer 1


Maybe the group does not have any permission, run this to get the permission for the group:

    $urlWeb = "http://yourPortalUrl"
    $web = Get-SpWeb $urlWeb
    foreach($roleAssignment in $web.RoleAssignments)
         write-host -foregroundcolor green "Group Name: "$roleAssignment.Member.Name "..."
         foreach($roleDefinition in $roleAssignment.RoleDefinitionBindings)
              write-host -foregroundcolor red "Permission Name: "$roleDefinition.Name "..."

and this to get a complete permission report by user:

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

How to get user permissions report by using Powershell

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.