{"id":1747,"date":"2014-11-20T13:29:31","date_gmt":"2014-11-20T13:29:31","guid":{"rendered":"http:\/\/www.stuartroberts.net\/?p=1747"},"modified":"2014-11-20T13:29:31","modified_gmt":"2014-11-20T13:29:31","slug":"workflow-app-permissions","status":"publish","type":"post","link":"https:\/\/www.stuartroberts.net\/index.php\/2014\/11\/20\/workflow-app-permissions\/","title":{"rendered":"Workflow App Permissions"},"content":{"rendered":"<p>With the new 2013 workflows there are a few scenarios that can cause issues which may not be obvious to those coming from 2010.  One such scenario is configuring list items to have <em>Create and Edit access<\/em> set to <em>Create items and edit items that were created by the user<\/em> and have a user who did not create the item initiate a 2013 workflow.  By default, this will result in the workflow failing due to unauthorised access exceptions.<\/p>\n<p>Lets walk through the scenario in more detail.<\/p>\n<p>Start with creating a new custom list and then in SharePoint Designer, publish a simple List workflow to it.<\/p>\n<p><a href=\"http:\/\/www.stuartroberts.net\/wp-content\/uploads\/2014\/11\/Publish-SPD-Workflow.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.stuartroberts.net\/wp-content\/uploads\/2014\/11\/Publish-SPD-Workflow.png\" alt=\"Publish SPD Workflow\" width=\"833\" height=\"190\" class=\"aligncenter size-full wp-image-1750\" srcset=\"https:\/\/www.stuartroberts.net\/wp-content\/uploads\/2014\/11\/Publish-SPD-Workflow.png 833w, https:\/\/www.stuartroberts.net\/wp-content\/uploads\/2014\/11\/Publish-SPD-Workflow-300x68.png 300w\" sizes=\"auto, (max-width: 833px) 100vw, 833px\" \/><\/a><\/p>\n<p>As you can see, a very simple workflow \ud83d\ude42<\/p>\n<p>Configure the list to allow users to only edit items that they created.<\/p>\n<p><a href=\"http:\/\/www.stuartroberts.net\/wp-content\/uploads\/2014\/11\/List-Permissions.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.stuartroberts.net\/wp-content\/uploads\/2014\/11\/List-Permissions.png\" alt=\"List Permissions\" width=\"622\" height=\"236\" class=\"aligncenter size-full wp-image-1751\" srcset=\"https:\/\/www.stuartroberts.net\/wp-content\/uploads\/2014\/11\/List-Permissions.png 622w, https:\/\/www.stuartroberts.net\/wp-content\/uploads\/2014\/11\/List-Permissions-300x113.png 300w\" sizes=\"auto, (max-width: 622px) 100vw, 622px\" \/><\/a><br \/>\n<!--more--><br \/>\nFor testing this scenario, configure the workflow to <em>Allow this workflow to be manually started by an authenticated user with Edit Item permissions<\/em><\/p>\n<p><a href=\"http:\/\/www.stuartroberts.net\/wp-content\/uploads\/2014\/11\/Workflow-Start-Settings.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.stuartroberts.net\/wp-content\/uploads\/2014\/11\/Workflow-Start-Settings.png\" alt=\"Workflow Start Settings\" width=\"809\" height=\"102\" class=\"aligncenter size-full wp-image-1752\" srcset=\"https:\/\/www.stuartroberts.net\/wp-content\/uploads\/2014\/11\/Workflow-Start-Settings.png 809w, https:\/\/www.stuartroberts.net\/wp-content\/uploads\/2014\/11\/Workflow-Start-Settings-300x37.png 300w\" sizes=\"auto, (max-width: 809px) 100vw, 809px\" \/><\/a><\/p>\n<p>Create a new item and initiate the workflow.  Assuming no errors in the workflow itself and it completes with no user interaction, i.e. no tasks, etc. the workflow will successfully run and finish.<\/p>\n<p><a href=\"http:\/\/www.stuartroberts.net\/wp-content\/uploads\/2014\/11\/Successful-Workflow.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.stuartroberts.net\/wp-content\/uploads\/2014\/11\/Successful-Workflow.png\" alt=\"Successful Workflow\" width=\"1122\" height=\"476\" class=\"aligncenter size-full wp-image-1753\" srcset=\"https:\/\/www.stuartroberts.net\/wp-content\/uploads\/2014\/11\/Successful-Workflow.png 1122w, https:\/\/www.stuartroberts.net\/wp-content\/uploads\/2014\/11\/Successful-Workflow-300x127.png 300w, https:\/\/www.stuartroberts.net\/wp-content\/uploads\/2014\/11\/Successful-Workflow-1024x434.png 1024w\" sizes=\"auto, (max-width: 1122px) 100vw, 1122px\" \/><\/a><\/p>\n<p>As a different user, initiate the same workflow against the same list item.<\/p>\n<p><a href=\"http:\/\/www.stuartroberts.net\/wp-content\/uploads\/2014\/11\/Failed-Workflow.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.stuartroberts.net\/wp-content\/uploads\/2014\/11\/Failed-Workflow.png\" alt=\"Failed Workflow\" width=\"648\" height=\"402\" class=\"aligncenter size-full wp-image-1754\" srcset=\"https:\/\/www.stuartroberts.net\/wp-content\/uploads\/2014\/11\/Failed-Workflow.png 648w, https:\/\/www.stuartroberts.net\/wp-content\/uploads\/2014\/11\/Failed-Workflow-300x186.png 300w\" sizes=\"auto, (max-width: 648px) 100vw, 648px\" \/><\/a><\/p>\n<p>This time, with the item being created by me and not SPDev Member, the workflow fails and is cancelled.  Looking through the ULS logs, there are a few items that will help to indicate why.  These include:<\/p>\n<ul>\n<li>SPRequest.AddOrUpdateItem: UserPrincipalName=<\/li>\n<li>Exception occured in scope Microsoft.SharePoint.SPListItem.UpdateWithFieldValues. Exception=System.UnauthorizedAccessException:<\/li>\n<li>Original error: System.UnauthorizedAccessException: <nativehr>0x80070005<\/nativehr><nativestack><\/nativestack><\/li>\n<\/ul>\n<p>All point to an unauthorised exception adding or updating the item, which makes sense considering we set the edit settings to only allow the user who created the item to edit it.  To resolve this we need to tell SharePoint to run the workflow with elevated permissions.  This is done by doing the following:<\/p>\n<p>Activate the web scoped feature <em>Workflows can use app permissions<\/em>.<\/p>\n<p><a href=\"http:\/\/www.stuartroberts.net\/wp-content\/uploads\/2014\/11\/Web-Feature.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.stuartroberts.net\/wp-content\/uploads\/2014\/11\/Web-Feature.png\" alt=\"Web Feature\" width=\"787\" height=\"107\" class=\"aligncenter size-full wp-image-1755\" srcset=\"https:\/\/www.stuartroberts.net\/wp-content\/uploads\/2014\/11\/Web-Feature.png 787w, https:\/\/www.stuartroberts.net\/wp-content\/uploads\/2014\/11\/Web-Feature-300x40.png 300w\" sizes=\"auto, (max-width: 787px) 100vw, 787px\" \/><\/a><\/p>\n<p>From the Site Settings page, click <em>Site App Permissions<\/em>.<\/p>\n<p><a href=\"http:\/\/www.stuartroberts.net\/wp-content\/uploads\/2014\/11\/Site-App-Permissions.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.stuartroberts.net\/wp-content\/uploads\/2014\/11\/Site-App-Permissions.png\" alt=\"Site App Permissions\" width=\"257\" height=\"225\" class=\"aligncenter size-full wp-image-1756\" \/><\/a><\/p>\n<p>Find the app titled <em>Workflow<\/em> and copy the first Guid in the <em>App Identifier<\/em> column, highlighted in the following screenshot.<\/p>\n<p><a href=\"http:\/\/www.stuartroberts.net\/wp-content\/uploads\/2014\/11\/Workflow-app-permission.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.stuartroberts.net\/wp-content\/uploads\/2014\/11\/Workflow-app-permission.png\" alt=\"Workflow app permission\" width=\"798\" height=\"123\" class=\"aligncenter size-full wp-image-1757\" srcset=\"https:\/\/www.stuartroberts.net\/wp-content\/uploads\/2014\/11\/Workflow-app-permission.png 798w, https:\/\/www.stuartroberts.net\/wp-content\/uploads\/2014\/11\/Workflow-app-permission-300x46.png 300w\" sizes=\"auto, (max-width: 798px) 100vw, 798px\" \/><\/a><\/p>\n<p>Basically everything between the first pipe character <em>|<\/em> and the first ampersand <em>@<\/em><\/p>\n<p>Navigate to <em>~\/_layouts\/15\/appinv.aspx<\/em>, there&#8217;s no link to this page so you&#8217;ll need to manually enter it into the address bar.<\/p>\n<p><a href=\"http:\/\/www.stuartroberts.net\/wp-content\/uploads\/2014\/11\/appinv-page.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.stuartroberts.net\/wp-content\/uploads\/2014\/11\/appinv-page.png\" alt=\"appinv page\" width=\"757\" height=\"489\" class=\"aligncenter size-full wp-image-1759\" srcset=\"https:\/\/www.stuartroberts.net\/wp-content\/uploads\/2014\/11\/appinv-page.png 757w, https:\/\/www.stuartroberts.net\/wp-content\/uploads\/2014\/11\/appinv-page-300x193.png 300w\" sizes=\"auto, (max-width: 757px) 100vw, 757px\" \/><\/a><\/p>\n<p>Paste the Guid you copied earlier into the <App Id><\/em> text box and click the <em>Lookup<\/em> button.  This will automatically populate the Title, App Domain and Redirect URL text boxes.<\/p>\n<p><a href=\"http:\/\/www.stuartroberts.net\/wp-content\/uploads\/2014\/11\/App-Id-Lookup.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.stuartroberts.net\/wp-content\/uploads\/2014\/11\/App-Id-Lookup.png\" alt=\"App Id Lookup\" width=\"596\" height=\"336\" class=\"aligncenter size-full wp-image-1760\" srcset=\"https:\/\/www.stuartroberts.net\/wp-content\/uploads\/2014\/11\/App-Id-Lookup.png 596w, https:\/\/www.stuartroberts.net\/wp-content\/uploads\/2014\/11\/App-Id-Lookup-300x169.png 300w\" sizes=\"auto, (max-width: 596px) 100vw, 596px\" \/><\/a><\/p>\n<p>Next, paste the following XML into the <em>Permission Request XML<\/em> text box and click the <em>Create<\/em> button.<\/p>\n<pre lang=\"xml\">\r\n<AppPermissionRequests>\r\n  <AppPermissionRequest Scope=\"http:\/\/sharepoint\/content\/sitecollection\/web\" Right=\"FullControl\" \/>\r\n<\/AppPermissionRequests>\r\n<\/pre>\n<p><a href=\"http:\/\/www.stuartroberts.net\/wp-content\/uploads\/2014\/11\/Permission-Request-XML.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.stuartroberts.net\/wp-content\/uploads\/2014\/11\/Permission-Request-XML.png\" alt=\"Permission Request XML\" width=\"599\" height=\"440\" class=\"aligncenter size-full wp-image-1761\" srcset=\"https:\/\/www.stuartroberts.net\/wp-content\/uploads\/2014\/11\/Permission-Request-XML.png 599w, https:\/\/www.stuartroberts.net\/wp-content\/uploads\/2014\/11\/Permission-Request-XML-300x220.png 300w\" sizes=\"auto, (max-width: 599px) 100vw, 599px\" \/><\/a><\/p>\n<p>Lastly, confirm that you want to trust all workflows for the current site by clicking the <em>Trust It<\/em> button.<\/p>\n<p><a href=\"http:\/\/www.stuartroberts.net\/wp-content\/uploads\/2014\/11\/Trust-Workflow.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.stuartroberts.net\/wp-content\/uploads\/2014\/11\/Trust-Workflow.png\" alt=\"Trust Workflow\" width=\"554\" height=\"270\" class=\"aligncenter size-full wp-image-1762\" srcset=\"https:\/\/www.stuartroberts.net\/wp-content\/uploads\/2014\/11\/Trust-Workflow.png 554w, https:\/\/www.stuartroberts.net\/wp-content\/uploads\/2014\/11\/Trust-Workflow-300x146.png 300w\" sizes=\"auto, (max-width: 554px) 100vw, 554px\" \/><\/a><\/p>\n<p>Now try initiating the same workflow that failed previously, running as a user who did not create the item.  This time the workflow will run and complete without error.<\/p>\n<p><a href=\"http:\/\/www.stuartroberts.net\/wp-content\/uploads\/2014\/11\/Successful-Elevated-Workflow.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.stuartroberts.net\/wp-content\/uploads\/2014\/11\/Successful-Elevated-Workflow.png\" alt=\"Successful Elevated Workflow\" width=\"1205\" height=\"185\" class=\"aligncenter size-full wp-image-1763\" srcset=\"https:\/\/www.stuartroberts.net\/wp-content\/uploads\/2014\/11\/Successful-Elevated-Workflow.png 1205w, https:\/\/www.stuartroberts.net\/wp-content\/uploads\/2014\/11\/Successful-Elevated-Workflow-300x46.png 300w, https:\/\/www.stuartroberts.net\/wp-content\/uploads\/2014\/11\/Successful-Elevated-Workflow-1024x157.png 1024w\" sizes=\"auto, (max-width: 1205px) 100vw, 1205px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>With the new 2013 workflows there are a few scenarios that can cause issues which may not be obvious to those coming from 2010. One such scenario is configuring list items to have Create and Edit access set to Create &hellip; <a href=\"https:\/\/www.stuartroberts.net\/index.php\/2014\/11\/20\/workflow-app-permissions\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"footnotes":""},"categories":[50,3,82],"tags":[81,11,30],"class_list":["post-1747","post","type-post","status-publish","format-standard","hentry","category-designer","category-sharepoint","category-workflow","tag-sharepoint","tag-sharepoint-designer","tag-workflow-activity"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.3 - aioseo.com -->\n\t<meta name=\"description\" content=\"How to run SharePoint 2013 workflows with elevated permissions.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Stu\"\/>\n\t<meta name=\"keywords\" content=\"sharepoint,sps,sp,site app permissions,appinv.apx,client.svc\/web\/lists\/getbyid,unauthorized,unauthorized access,sprequest.addorupdateitem,designer,workflow\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.stuartroberts.net\/index.php\/2014\/11\/20\/workflow-app-permissions\/\" \/>\n\t\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.3\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_GB\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Stuart Roberts | SharePoint &amp; M365 Development | Practical development guides, solutions and lessons learned across SharePoint, Microsoft 365 and modern development tools\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Workflow App Permissions | Stuart Roberts | SharePoint &amp; M365 Development\" \/>\n\t\t<meta property=\"og:description\" content=\"How to run SharePoint 2013 workflows with elevated permissions.\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/www.stuartroberts.net\/index.php\/2014\/11\/20\/workflow-app-permissions\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2014-11-20T13:29:31+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2014-11-20T13:29:31+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@SharePointStu\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Workflow App Permissions | Stuart Roberts | SharePoint &amp; M365 Development\" \/>\n\t\t<meta name=\"twitter:description\" content=\"How to run SharePoint 2013 workflows with elevated permissions.\" \/>\n\t\t<meta name=\"twitter:creator\" content=\"@SharePointStu\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.stuartroberts.net\\\/index.php\\\/2014\\\/11\\\/20\\\/workflow-app-permissions\\\/#article\",\"name\":\"Workflow App Permissions | Stuart Roberts | SharePoint & M365 Development\",\"headline\":\"Workflow App Permissions\",\"author\":{\"@id\":\"https:\\\/\\\/www.stuartroberts.net\\\/index.php\\\/author\\\/admin\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.stuartroberts.net\\\/#person\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.stuartroberts.net\\\/wp-content\\\/uploads\\\/2014\\\/11\\\/Publish-SPD-Workflow.png\",\"@id\":\"https:\\\/\\\/www.stuartroberts.net\\\/index.php\\\/2014\\\/11\\\/20\\\/workflow-app-permissions\\\/#articleImage\",\"width\":833,\"height\":190},\"datePublished\":\"2014-11-20T13:29:31+00:00\",\"dateModified\":\"2014-11-20T13:29:31+00:00\",\"inLanguage\":\"en-GB\",\"commentCount\":1,\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.stuartroberts.net\\\/index.php\\\/2014\\\/11\\\/20\\\/workflow-app-permissions\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.stuartroberts.net\\\/index.php\\\/2014\\\/11\\\/20\\\/workflow-app-permissions\\\/#webpage\"},\"articleSection\":\"Designer, SharePoint, Workflow, SharePoint, SharePoint Designer, Workflow Activity\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.stuartroberts.net\\\/index.php\\\/2014\\\/11\\\/20\\\/workflow-app-permissions\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.stuartroberts.net\\\/#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.stuartroberts.net\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.stuartroberts.net\\\/index.php\\\/category\\\/sharepoint\\\/#listItem\",\"name\":\"SharePoint\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.stuartroberts.net\\\/index.php\\\/category\\\/sharepoint\\\/#listItem\",\"position\":2,\"name\":\"SharePoint\",\"item\":\"https:\\\/\\\/www.stuartroberts.net\\\/index.php\\\/category\\\/sharepoint\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.stuartroberts.net\\\/index.php\\\/category\\\/sharepoint\\\/designer\\\/#listItem\",\"name\":\"Designer\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.stuartroberts.net\\\/#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.stuartroberts.net\\\/index.php\\\/category\\\/sharepoint\\\/designer\\\/#listItem\",\"position\":3,\"name\":\"Designer\",\"item\":\"https:\\\/\\\/www.stuartroberts.net\\\/index.php\\\/category\\\/sharepoint\\\/designer\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.stuartroberts.net\\\/index.php\\\/2014\\\/11\\\/20\\\/workflow-app-permissions\\\/#listItem\",\"name\":\"Workflow App Permissions\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.stuartroberts.net\\\/index.php\\\/category\\\/sharepoint\\\/#listItem\",\"name\":\"SharePoint\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.stuartroberts.net\\\/index.php\\\/2014\\\/11\\\/20\\\/workflow-app-permissions\\\/#listItem\",\"position\":4,\"name\":\"Workflow App Permissions\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.stuartroberts.net\\\/index.php\\\/category\\\/sharepoint\\\/designer\\\/#listItem\",\"name\":\"Designer\"}}]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.stuartroberts.net\\\/#person\",\"name\":\"Stu\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.stuartroberts.net\\\/index.php\\\/2014\\\/11\\\/20\\\/workflow-app-permissions\\\/#personImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/503cb376bab10c66a6bde71d1514dcab2eab4ec44a2f82ef597ca87af61bf1cd?s=96&d=retro&r=g\",\"width\":96,\"height\":96,\"caption\":\"Stu\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.stuartroberts.net\\\/index.php\\\/author\\\/admin\\\/#author\",\"url\":\"https:\\\/\\\/www.stuartroberts.net\\\/index.php\\\/author\\\/admin\\\/\",\"name\":\"Stu\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.stuartroberts.net\\\/index.php\\\/2014\\\/11\\\/20\\\/workflow-app-permissions\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/503cb376bab10c66a6bde71d1514dcab2eab4ec44a2f82ef597ca87af61bf1cd?s=96&d=retro&r=g\",\"width\":96,\"height\":96,\"caption\":\"Stu\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.stuartroberts.net\\\/index.php\\\/2014\\\/11\\\/20\\\/workflow-app-permissions\\\/#webpage\",\"url\":\"https:\\\/\\\/www.stuartroberts.net\\\/index.php\\\/2014\\\/11\\\/20\\\/workflow-app-permissions\\\/\",\"name\":\"Workflow App Permissions | Stuart Roberts | SharePoint & M365 Development\",\"description\":\"How to run SharePoint 2013 workflows with elevated permissions.\",\"inLanguage\":\"en-GB\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.stuartroberts.net\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.stuartroberts.net\\\/index.php\\\/2014\\\/11\\\/20\\\/workflow-app-permissions\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.stuartroberts.net\\\/index.php\\\/author\\\/admin\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.stuartroberts.net\\\/index.php\\\/author\\\/admin\\\/#author\"},\"datePublished\":\"2014-11-20T13:29:31+00:00\",\"dateModified\":\"2014-11-20T13:29:31+00:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.stuartroberts.net\\\/#website\",\"url\":\"https:\\\/\\\/www.stuartroberts.net\\\/\",\"name\":\"Stuart Roberts on all things SharePoint\",\"description\":\"Practical development guides, solutions and lessons learned across SharePoint, Microsoft 365 and modern development tools\",\"inLanguage\":\"en-GB\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.stuartroberts.net\\\/#person\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Workflow App Permissions | Stuart Roberts | SharePoint & M365 Development","description":"How to run SharePoint 2013 workflows with elevated permissions.","canonical_url":"https:\/\/www.stuartroberts.net\/index.php\/2014\/11\/20\/workflow-app-permissions\/","robots":"max-image-preview:large","keywords":"sharepoint,sps,sp,site app permissions,appinv.apx,client.svc\/web\/lists\/getbyid,unauthorized,unauthorized access,sprequest.addorupdateitem,designer,workflow","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.stuartroberts.net\/index.php\/2014\/11\/20\/workflow-app-permissions\/#article","name":"Workflow App Permissions | Stuart Roberts | SharePoint & M365 Development","headline":"Workflow App Permissions","author":{"@id":"https:\/\/www.stuartroberts.net\/index.php\/author\/admin\/#author"},"publisher":{"@id":"https:\/\/www.stuartroberts.net\/#person"},"image":{"@type":"ImageObject","url":"https:\/\/www.stuartroberts.net\/wp-content\/uploads\/2014\/11\/Publish-SPD-Workflow.png","@id":"https:\/\/www.stuartroberts.net\/index.php\/2014\/11\/20\/workflow-app-permissions\/#articleImage","width":833,"height":190},"datePublished":"2014-11-20T13:29:31+00:00","dateModified":"2014-11-20T13:29:31+00:00","inLanguage":"en-GB","commentCount":1,"mainEntityOfPage":{"@id":"https:\/\/www.stuartroberts.net\/index.php\/2014\/11\/20\/workflow-app-permissions\/#webpage"},"isPartOf":{"@id":"https:\/\/www.stuartroberts.net\/index.php\/2014\/11\/20\/workflow-app-permissions\/#webpage"},"articleSection":"Designer, SharePoint, Workflow, SharePoint, SharePoint Designer, Workflow Activity"},{"@type":"BreadcrumbList","@id":"https:\/\/www.stuartroberts.net\/index.php\/2014\/11\/20\/workflow-app-permissions\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/www.stuartroberts.net\/#listItem","position":1,"name":"Home","item":"https:\/\/www.stuartroberts.net\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.stuartroberts.net\/index.php\/category\/sharepoint\/#listItem","name":"SharePoint"}},{"@type":"ListItem","@id":"https:\/\/www.stuartroberts.net\/index.php\/category\/sharepoint\/#listItem","position":2,"name":"SharePoint","item":"https:\/\/www.stuartroberts.net\/index.php\/category\/sharepoint\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.stuartroberts.net\/index.php\/category\/sharepoint\/designer\/#listItem","name":"Designer"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.stuartroberts.net\/#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.stuartroberts.net\/index.php\/category\/sharepoint\/designer\/#listItem","position":3,"name":"Designer","item":"https:\/\/www.stuartroberts.net\/index.php\/category\/sharepoint\/designer\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.stuartroberts.net\/index.php\/2014\/11\/20\/workflow-app-permissions\/#listItem","name":"Workflow App Permissions"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.stuartroberts.net\/index.php\/category\/sharepoint\/#listItem","name":"SharePoint"}},{"@type":"ListItem","@id":"https:\/\/www.stuartroberts.net\/index.php\/2014\/11\/20\/workflow-app-permissions\/#listItem","position":4,"name":"Workflow App Permissions","previousItem":{"@type":"ListItem","@id":"https:\/\/www.stuartroberts.net\/index.php\/category\/sharepoint\/designer\/#listItem","name":"Designer"}}]},{"@type":"Person","@id":"https:\/\/www.stuartroberts.net\/#person","name":"Stu","image":{"@type":"ImageObject","@id":"https:\/\/www.stuartroberts.net\/index.php\/2014\/11\/20\/workflow-app-permissions\/#personImage","url":"https:\/\/secure.gravatar.com\/avatar\/503cb376bab10c66a6bde71d1514dcab2eab4ec44a2f82ef597ca87af61bf1cd?s=96&d=retro&r=g","width":96,"height":96,"caption":"Stu"}},{"@type":"Person","@id":"https:\/\/www.stuartroberts.net\/index.php\/author\/admin\/#author","url":"https:\/\/www.stuartroberts.net\/index.php\/author\/admin\/","name":"Stu","image":{"@type":"ImageObject","@id":"https:\/\/www.stuartroberts.net\/index.php\/2014\/11\/20\/workflow-app-permissions\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/503cb376bab10c66a6bde71d1514dcab2eab4ec44a2f82ef597ca87af61bf1cd?s=96&d=retro&r=g","width":96,"height":96,"caption":"Stu"}},{"@type":"WebPage","@id":"https:\/\/www.stuartroberts.net\/index.php\/2014\/11\/20\/workflow-app-permissions\/#webpage","url":"https:\/\/www.stuartroberts.net\/index.php\/2014\/11\/20\/workflow-app-permissions\/","name":"Workflow App Permissions | Stuart Roberts | SharePoint & M365 Development","description":"How to run SharePoint 2013 workflows with elevated permissions.","inLanguage":"en-GB","isPartOf":{"@id":"https:\/\/www.stuartroberts.net\/#website"},"breadcrumb":{"@id":"https:\/\/www.stuartroberts.net\/index.php\/2014\/11\/20\/workflow-app-permissions\/#breadcrumblist"},"author":{"@id":"https:\/\/www.stuartroberts.net\/index.php\/author\/admin\/#author"},"creator":{"@id":"https:\/\/www.stuartroberts.net\/index.php\/author\/admin\/#author"},"datePublished":"2014-11-20T13:29:31+00:00","dateModified":"2014-11-20T13:29:31+00:00"},{"@type":"WebSite","@id":"https:\/\/www.stuartroberts.net\/#website","url":"https:\/\/www.stuartroberts.net\/","name":"Stuart Roberts on all things SharePoint","description":"Practical development guides, solutions and lessons learned across SharePoint, Microsoft 365 and modern development tools","inLanguage":"en-GB","publisher":{"@id":"https:\/\/www.stuartroberts.net\/#person"}}]},"og:locale":"en_GB","og:site_name":"Stuart Roberts | SharePoint &amp; M365 Development | Practical development guides, solutions and lessons learned across SharePoint, Microsoft 365 and modern development tools","og:type":"article","og:title":"Workflow App Permissions | Stuart Roberts | SharePoint &amp; M365 Development","og:description":"How to run SharePoint 2013 workflows with elevated permissions.","og:url":"https:\/\/www.stuartroberts.net\/index.php\/2014\/11\/20\/workflow-app-permissions\/","article:published_time":"2014-11-20T13:29:31+00:00","article:modified_time":"2014-11-20T13:29:31+00:00","twitter:card":"summary","twitter:site":"@SharePointStu","twitter:title":"Workflow App Permissions | Stuart Roberts | SharePoint &amp; M365 Development","twitter:description":"How to run SharePoint 2013 workflows with elevated permissions.","twitter:creator":"@SharePointStu"},"aioseo_meta_data":{"post_id":"1747","title":"Workflow App Permissions | #site_title","description":"How to run SharePoint 2013 workflows with elevated permissions.","keywords":[{"label":"SharePoint","value":"SharePoint"},{"label":"SPS","value":"SPS"},{"label":"SP","value":"SP"},{"label":"Site app permissions","value":"Site app permissions"},{"label":"appinv.apx","value":"appinv.apx"},{"label":"client.svc\/web\/lists\/getbyid","value":"client.svc\/web\/lists\/getbyid"},{"label":"unauthorized","value":"unauthorized"},{"label":"unauthorized access","value":"unauthorized access"},{"label":"SPRequest.AddOrUpdateItem","value":"SPRequest.AddOrUpdateItem"}],"keyphrases":{"focus":[],"additional":[]},"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"created":"2021-08-03 13:46:14","updated":"2026-10-16 15:24:15","focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.stuartroberts.net\/\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.stuartroberts.net\/index.php\/category\/sharepoint\/\" title=\"SharePoint\">SharePoint<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.stuartroberts.net\/index.php\/category\/sharepoint\/designer\/\" title=\"Designer\">Designer<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tWorkflow App Permissions\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/www.stuartroberts.net\/"},{"label":"SharePoint","link":"https:\/\/www.stuartroberts.net\/index.php\/category\/sharepoint\/"},{"label":"Designer","link":"https:\/\/www.stuartroberts.net\/index.php\/category\/sharepoint\/designer\/"},{"label":"Workflow App Permissions","link":"https:\/\/www.stuartroberts.net\/index.php\/2014\/11\/20\/workflow-app-permissions\/"}],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.stuartroberts.net\/index.php\/wp-json\/wp\/v2\/posts\/1747","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.stuartroberts.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.stuartroberts.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.stuartroberts.net\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.stuartroberts.net\/index.php\/wp-json\/wp\/v2\/comments?post=1747"}],"version-history":[{"count":6,"href":"https:\/\/www.stuartroberts.net\/index.php\/wp-json\/wp\/v2\/posts\/1747\/revisions"}],"predecessor-version":[{"id":1766,"href":"https:\/\/www.stuartroberts.net\/index.php\/wp-json\/wp\/v2\/posts\/1747\/revisions\/1766"}],"wp:attachment":[{"href":"https:\/\/www.stuartroberts.net\/index.php\/wp-json\/wp\/v2\/media?parent=1747"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.stuartroberts.net\/index.php\/wp-json\/wp\/v2\/categories?post=1747"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.stuartroberts.net\/index.php\/wp-json\/wp\/v2\/tags?post=1747"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}