Categories:

Enable App Step to use SharePoint Designer Workflow with Elevated Permission

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:

Step 1:

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.

https://TenantName/sites/SiteName/_layouts/15/ManageFeatures.aspx

Activate “Workflow can use app permissions” feature from the “Manage Site Features” page.

Step 2:

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.

Step 3:

Navigate to the below URL to grant permission for the Workflow App.

https://TenantName/sites/SiteName/_layouts/15/appinv.aspx

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.

<AppPermissionRequests>

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

</AppPermissionRequests>

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.

<AppPermissionRequests> 

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

</AppPermissionRequests>

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.

Sharing is Caring!

Leave a Reply

Your email address will not be published. Required fields are marked *