kwizcom banner advertisement

SharePoint Online: Access Denied Error on Navigation Settings

Problem: When trying to change the navigation settings of a SharePoint Online site, got access denied error.  Access Required: Sorry, you don't have access.
sharepoint online navigation settings access denied
I'm sure, I am a Global Admin in Office 365, and Site Collection Administrator for that particular site collection. Tried the PowerShell way and got the similar error: "Access denied. You do not have permission to perform this action or access this resource."

Solution to the Navigation Settings Access Denied Error:
To fix this issue: You have to set "Custom Script" setting to "Allow users to run custom script on self service created sites" in the SharePoint Online Admin Center Settings page and it takes 24 hours or so to propagate! So, lets not wait and enable custom script at site collection level.

PowerShell to Enable Custom Scripts in SharePoint Online Site Collection:
#Config Parameters
$AdminSiteURL="https://crescent-admin.sharepoint.com"
$SiteURL="https://crescent.sharepoint.com/sites/marketing"
   
#Get Credentials to connect
$Cred = Get-Credential
   
#Connect to SharePoint Online Tenant Admin
Connect-SPOService -URL $AdminSiteURL -Credential $Cred
   
#Disable DenyAddAndCustomizePages Flag
Set-SPOSite $SiteURL -DenyAddAndCustomizePages $False

Here is my another post on enabling custom script in SharePoint Online: How to Enable Custom Script in SharePoint Online?
SharePoint Online: Access Denied Error on Navigation Settings SharePoint Online: Access Denied Error on Navigation Settings Reviewed by Salaudeen Rajack on June 07, 2017 Rating: 5

No comments:

Please Login and comment to get your questions answered!

Powered by Blogger.