
Announcements
Hi, I'm having the following error "Access" denied when I do an update item from a sharepoint list.
My flow fetches the contents of a template in sharepoint to copy to a new site, then I update the hyperlinks in the new site.
The User who creates the flow has Full Control permissions on sharepoint on the site to which I am trying to update the items.
SITE PERMISSIONES FROM THE USER, I HAVE TOTAL CONTROL BUT I GET DENIED FOR
"Add and customize pages"
Hi @royagutierrez,
That is because there is a site setting which does not allow sites scripts by default (DenyAddAndCustomizePages).
You can update this site setting to allow custom scripts (update site page files is one of them) via the Microsoft.Online.SharePoint.PowerShell module, via the Set-SPOSite cmdlet:
The script would be something like below
Connect-SPOService -Url https://contoso-admin.sharepoint.com
Set-SPOSite -Identity https://contoso.sharepoint.com/sites/yoursite -DenyAddAndCustomizePages $false
Disconnect-SPOService
Here is another example thread about the same question: