cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
dhruvmathur
Advocate II
Advocate II

Document Set permissions not cascading down to documents inside

Hello PA community,

 

I have an interesting issue. I have a document library that contains Document Sets. Two of the metadata fields on the document set are "Owner" and "Author". When a new document set is created, I have a flow that run when something is created in the library. The trigger condition for that flow is to check if the isFolder field is true, so it only runs if a new document set is created. This flow updates the permissions for the document set to only give the owner and author Edit permissions and reset all other permissions to Read. This works fine. I am using the HTTP action to first break inheritance, then I delete all permissions, and then I add the appropriate permissions. The issue I am having is this. When a document set metadata is updated to modify the owner or author, I have another flow that runs (same as  the one that runs on create) when something is modified, with the trigger condition to check if the isFolder is set to true, so it only runs when a document set property is modified. This also completes, but the problem is, all word documents within that document set lose their permissions, so those documents are no longer visible to anyone except the SCA. Interestingly, this only happens to the word documents (so far I only have word documents, so not sure if this would fail for any other documents like PPT or Excel). I also have some pdf documents, which retain the permissions. Could someone guide me and let me know if my approach is incorrect? My understanding is that the permissions I set at the document set level should cascade down to the documents within. Any suggestions or ideas on how to accomplish this would be greatly appreciated.

0 REPLIES 0

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (3,031)