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

Failed to get web title Access denied
InfoPath alternatives for form designing SharePoint

Here we will discuss 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 addin. We developed and deployed the add-in to SharePoint online site. But when click on the add-in it gave below error.

Also you can read some beautiful articles:
How to update app registration in SharePoint online site?

How to add lookup column programmatically using csom in SharePoint online Office 365?

Steps to create Azure WebJobs for SharePoint online and deploy in Microsoft Azure

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 Access denied
Failed to get web title Access denied



Solution:

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

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

Failed to get web title Access denied SharePoint online
Failed to get web title Access denied SharePoint online

Now when you deploy the 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.

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

Hope this will be helpful.

Similar SharePoint 2013 Tutorials

About 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"

View all posts by Bhawana Rathore →

Leave a Reply