Failed to get web title Error Access denied You do not have permission to perform this action or access this resource

This SharePoint Apps or Add-in tutorial explains, how to resolve access denied issue which comes while accessing SharePoint add-in.

Recently we were doing a sample SharePoint hosted add-in for our SharePoint Online site. We were trying to get the web title inside the add-in. We developed and deployed the add-in to SharePoint Online site. But when click on the add-in it gave below error.

The error comes as:
Failed to get web title. Error. Access denied. You do not have permission to perform this action or access this resource. See fig below:

Failed to get web title Error Access denied

Failed to get web title Error Access denied

We need to provide at least read access for the site collection in SharePoint.

Open the AppManifest.xml file in the SharePoint add-in project. The in the Scope select Site Collection and give Read permission like below:

You do not have permission to perform this action or access this resource

Now when you deploy the SharePoint Add-in, it will ask you to trust the Add-in. Click on Trust It button and then you will be able to see the title without error.

Failed to get web title Error Access denied You do not have permission to perform this action or access this resource

You may like following SharePoint Apps tutorials:

This SharePoint tutorial, we learned how to solve Failed to get web title Error Access denied You do not have permission to perform this action or access this resource error which comes in SharePoint hosted add-in.

free sharepoint training

SharePoint Online FREE Training

JOIN a FREE SharePoint Video Course (3 Part Video Series)

envelope
envelope

Bhawana Rathore

Hello Everyone!! I am Bhawana a SharePoint MVP and having about 8+ years of SharePoint experience as well as in .Net technologies . I have worked in all the versions of SharePoint from wss to Office 365. I have good exposure in Customization and Migration using Nintex, Metalogix tools . Now exploring more in SharePoint 2016 :) Hope here I can contribute and share my knowledge to the fullest. As I believe "There is no wealth like knowledge, and no poverty like ignorance"

>