With Powershell CSOM and SharePoint 2013, I am trying to reset the permission to the domain group "Everyone
", with the name "c:0(.s|true
". Therefore I want to delete and recreate it, so that all the permissions "Everyone
" has gotten over time have been reset.
What is the correct Powershell CSOM code for executing these actions?
I also want to do the same for the group "Everyone except external users
", but I suspect it's the same procedure as to the question above.
EDIT: I'm also satisfied with a way to iterate through the permissions and removing them one by one. What is the Powershell CSOM command for removing a groups permission to a list?