How Run The Workflow With Elevated Privileges

Jan 28, 2014 at 8:45 AM
Edited Jan 28, 2014 at 8:45 AM
Using your tips I have created such custom activities. But I have issues with the permissions. I receive unauthorized exception when a user with less permissions initiates the workflow.

I have used apprequestpermission xml with the following format for the workflow app:


<AppPermissionRequests AllowAppOnlyPolicy="true">
<AppPermissionRequest
Scope="http://sharepoint/content/sitecollection/web" Right="FullControl" /> </AppPermissionRequests> I have tried with and without the AllowAppOnlyPolicy attribute. No luck. Looking at the ULS it shows that the user is used is still the initator (creator of the list item) to which the workflow is associated. Any ideas?
Coordinator
Feb 4, 2014 at 12:17 PM
Could you try this app workflow example? As this should do the same as you try.
Feb 5, 2014 at 6:01 AM
After looking at the source code I have found what was missing - AppOnlySequence.