0

quick backstory, this site was migrated from 2010 to 2013 using the Share-Gate migration tool. Now there is this all users AD group that has all ad users in it, and since we broke inheritance on the site, I'm seeing this group is given limited access to every library. The problem with that is that it makes libraries where a user does not have any access show in the quick launch. We would like the libraries that a user does not have any access to be hidden from the quick launch for that user. I believe this limited access permission is causing the issue. Can anyone help me out?

I'm not sure how to remove it and I'm not entirely sure that will resolve the issue.

note the DL shows in the list of SiteUsers

Thanks

0

have you tried this one

$web=Get-SPWeb http://site url
$list = $web.Lists["list/library name"]
$list.BreakRoleInheritance($true)
$web.AllowUnsafeUpdates=$true
[Microsoft.SharePoint.SPRoleAssignmentCollection] $spRoleAssignments=$list.RoleAssignments
for([int] $a=$spRoleAssignments.Count-1; $a -ge 0;$a--)
{
   if($spRoleAssignments[$a].Member.Name -eq "groupName")
   {
      $spRoleAssignments.Remove($a);
   }
}

https://social.technet.microsoft.com/Forums/en-US/f1ce2b67-661d-4272-b917-bc5eb1b39e4c/remove-group-from-document-library-using-powershell?forum=sharepointgeneralprevious

1
  • OMG THANK YOU SO MUCH! Oh did this one has plague me. This did the trick!!!!!!!!!!!!
    – Vinny
    Apr 1 '16 at 16:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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