SharePoint 2013 Workflow App Permissions

workflow app permission sharepoint 2013
InfoPath alternatives for form designing SharePoint

Scenario:
Create a SharePoint Designer 2013 Workflow associated with the security list and set it to start automatically when a list item is created. Once the user submits his comment, the Workflow will create the list item in the security list with the use of an app step. The initiator does not always have the rights to complete all the actions within the Workflow, for example, when the Workflow needs to create new items. With SharePoint 2013 Workflows, it is possible to use app step action to give the Workflow its own permission set, if the Workflow’s own permission is not set. In such a situation, the Workflow gets Suspended. I noticed the occurrence of this scenario when I used the app step. Looking at the Suspended state, there is an icon, which shows an error when clicked.

Read some SharePoint 2013 tutorials on:

Details:
An unhandled exception occurred during the execution of the Workflow instance. Exception details: System.ApplicationException: HTTP 401 {“error_description”:”The Server was unable to process the request due to an internal error.


workflow app permission sharepoint 2013
workflow app permission sharepoint 2013

Solutions
To allow Workflow to use app permissions
1. Go to Site settings–>Manage Features

SharePoint 2016 Workflow App Permissions.png
SharePoint 2016 Workflow App Permissions.png

SharePoint 2013 grant permission to SharePoint 2013 workflow app

2. Activate Workflows can use app permissions.

Steps:
1. Go to Site Settings.
2. In the Users and Permissions section, select Site app permissions.

SharePoint online Workflow App Permissions.png
SharePoint online Workflow App Permissions.png

3. Copy the client section of the app identifier. This is the identifier between the last “|” and the “@” sign. Select App Identifier.

4. Navigate to the Grant permission to an app page. This must be done by browsing to the appinv.aspx page of the site.

5. Fill in the App Id and click Lookup.



how to give SharePoint online Workflow App Permissions.png
how to give SharePoint online Workflow App Permissions.png

6. The fields Title, App Domain and Redirect URL will be filled in automatically.

7. Paste XML code given below into Permission Request XLM textbox to the grant the Workflow app step full control.
http: //{hostname}/{the Site Collection}/_layouts/15/appinv.aspx

< AppPermissionRequests >
< AppPermissionRequest Scope = “http://sharepoint/content/sitecollection/web” Right = “FullControl” / >
< /AppPermissionRequests>

Click Create and Trust It.

steps to give SharePoint online Workflow App Permissions.png
steps to give SharePoint online Workflow App Permissions.png

Note
1. There are no placeholders in the Scope value above. It is a literal value. Enter it exactly, as it appears here.
2. If you are facing any issue, please copy the text given above, which is taken from MSDN article whose link is given below.
9. Click Create.

10. You will then be asked to trust the Workflow app. Click Trust It.
Please follow the MSDN article given below for more reference to configure the app step.
https://msdn.microsoft.com/en-us/library/office/jj822159.aspx


You May Also like the Following SharePoint Online Tutorials:

About Sagar Pardeshi

I am Developer working on Microsoft Technologies for the past 6+years. I am very much passionate about programming and my core skills are SharePoint, ASP.NET & C#,Jquery,Javascript,REST. I am running this blog to share my experience & learning with the community I am an MCP, MCTS .NET & Sharepoint 2010, MCPD Sharepoint 2010, and MCSD HTML 5,Sharepoint 2013 Core Solutions. I am currently working on Sharepoint 2010, MOSS 2007, Sharepoint 2013,Sharepoint 2013 App Dev, C#, ASP.NET, and SQL Server 2008.

View all posts by Sagar Pardeshi →

Leave a Reply