question

AlisterThornley-3746 avatar image
0 Votes"
AlisterThornley-3746 asked ·

SharePoint 2010

Hi All,

Looking for expert opinions on this script I have written. The intention is to deny access to sites identified as not being used, in preparation for a migration from SharePoint 2010 to SharePoint Online. Have I missed anything?

I have skipped removing the limited access permissions, because I am not really sure what they are there for... Are they required system permissions?

Also,
I am a bit concerned about this line:
$spweb.hasuniqueroleassignments -eq "True"
should it actually be:
$spweb.hasuniqueroleassignments -eq $True

Had to rename my PS1 to TXT, I guess it is deemed dangerous

13178-removepermissions3.txt


office-sharepoint-server-itpro
· 3
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Have read the script

0 Votes 0 ·

Great, thanks. Can anyone expand on limited access. What is this permission there for, is it safe to remove it?

0 Votes 0 ·

Do you have any progress on this thread? Please feel free to let us know if you need further assistance.

0 Votes 0 ·
SomenathGhosh-7850 avatar image
0 Votes"
SomenathGhosh-7850 answered ·

$spweb.hasuniqueroleassignments will return $true not "True"

·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

ChelseaWu-MSFT avatar image
0 Votes"
ChelseaWu-MSFT answered ·
  1. The Limited Access permission is automatically assigned by SharePoint when you provide access to one specific item. You cannot assign Limited Access permissions directly to a user or group yourself, but it is safe to remove this permission from a user or group.

  2. The value returned by SPWeb.HasUniqueRoleAssignments Property is True/False in SharePoint Server 2013 or higher version, but $True/$False in SharePoint Server 2010.







·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.