web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Access Denied When Upd...
Power Automate
Unanswered

Access Denied When Update SharePoint Item

(0) ShareShare
ReportReport
Posted on by

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.

 

Captura1.png

 

Captura2.png

 

Error.png

SITE PERMISSIONES FROM THE USER, I HAVE TOTAL CONTROL BUT I GET DENIED FOR 
"Add and customize pages"

Permisos.png

 

Categories:
I have the same question (0)
  • Expiscornovus Profile Picture
    33,183 Most Valuable Professional on at

    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:

    https://learn.microsoft.com/en-us/sharepoint/allow-or-prevent-custom-script#to-allow-custom-script-on-other-sharepoint-sites

     

    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:

    https://powerusers.microsoft.com/t5/Building-Flows/SharePoint-update-file-quot-Access-denied-quot/m-p/262366/highlight/true#M26563

     

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 523 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 406 Moderator

#3
abm abm Profile Picture

abm abm 245 Most Valuable Professional

Last 30 days Overall leaderboard