Forum Discussion
Magnus_Jansson_1
Apr 16, 2018Copper Contributor
is permissions for sharing a site via ShareSite changed
Hi! I have a SharePoint app that tries to invite people to a site via the PnP ShareSite method. About a month ago the app stopped working and now I see that I get a StatusCode of Access Denied w...
Bart Kapitein
Aug 29, 2018Copper Contributor
We are having exactly the same issue. Sharing a site using a ClientContext with App Only credentials was working before, but now we receive errors.
When sharing a site using a ClientContext that has authenticated with SharePointOnlineCredentials the sharing succeeds. Using the same code but a ClientContext that has authenticated with App Only credentials the sharing fails with error message: 'The user has insufficient permissions to create an invitation'. The app has tenant full control permissions.
I think the SharePoint Online Sharing API has changed and the change is causing this issue now.
nguyentoan
Apr 01, 2019Copper Contributor
Hi Bart Kapitein,
Did you have a solution to work with App Only Authentication? I have the same issue as well.
Did you have a solution to work with App Only Authentication? I have the same issue as well.