I have been testing out the provisioning of team sites using Powershell CSOM calls working against an on premise SharePoint 2013 farm. Creating Team Sites this way is very easy. One of the great advantages I have found is I don't need to RDP to any of the servers on the farm and indeed get "kicked off" if one the other consultants hijacks my admin session!
Now, I want script the following using CSOM or REST
- Break permission inheritance
- Remove any SharePoint groups
- Granting one or more AD groups the desired "Contribute" or "Design" permissions.
I just wondered if this is possible without needing to be logged on to a farm server and running server side PS script.