This blog will help to enable App Step in SharePoint Designer Workflow for the SharePoint Online site with elevated permission.
App Step, which provides us to create Designer Workflow with elevated Permission. While using App Step in the Designer Workflow, while will work depend on the registered permission for the App Step, which will not depend on the current user permission.
Please follow the below steps to enable the App Step in SharePoint Designer for the Site:
Navigate to “Site Settings” and choose “Manage Site Features” under “Site Actions” option.
Or navigate to the below URL to navigate to the page directly.
Activate “Workflow can use app permissions” feature from the “Manage Site Features” page.
After activating the “Workflow can use app permissions” feature, navigate to the “Site app permissions” page.
In the “Site app permissions” page, it will generate an App identifier with the App Display Name as “Workflow”.
Copy the App Identifier of Workflow between “ext|” symbol and “@” symbol, which have highlighted in the above image.
Navigate to the below URL to grant permission for the Workflow App.
In the Page, you will find the form which like below image.
In the App id, you have to paste the App ID which has been copied from the App Identifier of the Workflow.
After pasting the Id in the App id, click the “Lookup” button. Once the button is clicked, the input fields from the form (Title, App Domain, and Redirect URL) are automatically filled except the “Permission Request XML” input field.
If you want to give full control permission for the Current Site, please copy the below XML and Paste it in “Permission Request XML” input field.
<AppPermissionRequest Scope=”http://sharepoint/content/sitecollection/web” Right=”FullControl” />
If you want to give full control permission for the entire Site Collection, please copy the below XML and Paste it in the “Permission Request XML” input field.
<AppPermissionRequest Scope=”http://sharepoint/content/sitecollection” Right=”FullControl” />
then click the “Create” button and give “Trust it” by clicking it.
Now you can see the App Step is enabled In the Designer Workflow for the SharePoint Online site.
You can use App Step to create Designer Workflow with elevated Permission.
While publishing Workflow by using App Step, which will show a confirmation dialog box before publishing the workflow.
In the confirmation dialog box, mentioned about using App Permission instead of current user permission. Once clicked “OK” button, the workflow will run with App permission. I hope, you have learned how to enable App step to use elevated permission for the SharePoint Designer workflow from the blog.