This forum has migrated to Microsoft Q&A. Visit Microsoft Q&A to post new questions.
PowerShell code to delete all the unique permissions associated to a sub-site.
asnp *sh* $webUrl="https://XXXXX/sites/opstest/Aditest/" $web = Get-SPweb $webUrl if($Web.HasUniqueRoleAssignments -ne $null)
{
#delete all unique permissions
}
Hi,
Thanks for your question.
Please refer to the post discussed before.
https://social.technet.microsoft.com/Forums/lync/en-US/229e56f4-189a-4cc9-988d-b9800a4da509/clearreset-all-unique-permissions-from-site-and-subsites?forum=sharepointgeneral
Since the issue is more related with sharepoint, please have this asked in sharepoint Forum for better answers.
https://social.technet.microsoft.com/Forums/lync/en-US/home?category=sharepoint
Best regards,
Lee
Just do it.
Hi Lee
Below post delete the unique permissions on the list not on a site.