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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Flow to modify file ac...
Power Apps
Answered

Flow to modify file access for a user runs successfully, but does nothing.

(0) ShareShare
ReportReport
Posted on by 15

Hello

 

I've built a Power App that manages team tasks.  A user is able to create a task and assign other team members as contributors to the task.   The task creator can then upload files and the other team members are able to review and make changes to the files (mostly MS Word, and MS Excel files).  Once a contributor is done with their edits, they can indicate this in the Power App, and they lose edit permission to the file.  

 

File management is handled by SharePoint in a document library.  My issue is, I'm having trouble getting file permissions to update from "edit" to "view" in SharePoint.  

 

Just for reference, I have two flows.  The first runs when the task creator uploads a file.  This first flow breaks inheritance and assigns all contributors "edit" access to the file.  The second flow runs when a contributor indicates they are done making edits.  This second flow is supposed change the user's permission from "edit" to "view", however, even though the flow executes successfully, the file permissions do not change.  What's even stranger is if I reverse the permission process (i.e., I have the first flow grant "view" access" and the second flow grant "edit" access), everything works fine!!  So for some reason, by second flow can change permissions from view to edit, but the not the other way around?? 

 

I am utilizing a HTTP request to update the permission (I also tried using the SharePoint "Grant access to an item or folder" action but got the same results).  Here's the flow:

FlowScreenshot.png

Anyone run into this issue before?  Is there a workaround?  

Categories:
  • Verified answer
    RobGlprFan Profile Picture
    15 on at

    I solved this issue by first deleting the user's permissions via an HTTP request to SharePoint with the DELETE method, then granting the user access. 

     

    Automate-DeletePermissions.png

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 396 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 323

#3
WarrenBelz Profile Picture

WarrenBelz 193 Most Valuable Professional

Last 30 days Overall leaderboard