Hi there brain boxes!
Does anyone know if it’s possible to grant ‘full control’ permissions to a workflow via client-side code? The manual steps to achieve this are described here : http://msdn.microsoft.com/en-us/library/office/jj822159(v=office.15).aspx. In our case we need to be able to deploy the workflow and then grant it full control permissions so that we don’t have to instruct the user to go and read that article 😉
In short we want to do what this screen does via code :
?width=750
Hey Mark,
In order to get this working you need some class that are not available in CSOM / JSOM. Like:
- SPAppPrincipalManager
- SPAppPrincipalName
If you like I can send you a piece of a cmdlet I made to do this for Apps, but I don’t think this is possible with Client Side code. I would make this part of your deployment in a On Premises environment. In Office 365 I think you will always need to do this manually. (Or I must have missed some API updates ;).