web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :

D365: "Access denied. You do not have permission to perform this action or access this resource" while calling SharePoint API from plugin/custom workflow

AjitPatra Profile Picture AjitPatra 469

Recently, we were working on calling SharePoint API from plugin. While getting the access token we received the following error: “Access denied. You do not have permission to perform this action or access this resource”.

To fix this issue, we gave appropriate permission to the Application we had created in SharePoint for Server to Server authentication.

Below is the permission XML:

<AppPermissionRequests AllowAppOnlyPolicy="true">
  <AppPermissionRequest Scope="http://sharepoint/content/sitecollection/web" Right="FullControl"/>
</AppPermissionRequests>

We can follow the steps mentioned here to give the above permission.

Hope it helps !!


This was originally posted here.

Comments

*This post is locked for comments