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
 WHAT’S NEXT AT MICROSOFT IGNITE 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Register for a Free Workshop.png

Register for a Free Workshop

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

Users online (3,150)