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 / BreakInheritance of do...
Power Automate
Unanswered

BreakInheritance of document folder -> unique permissions -> how do I inherit this permissions on all subfiles?

(0) ShareShare
ReportReport
Posted on by 2

Hey,

 

I use a list of document folders which works fine. Initially no user has access. If starting a flow on a specific document folder, I break its interitance using a HTTP request. Now I set unique permissions for a O365-Group, which works fine for that specific document folder. The problem is, that the files inside the document folder do not have these permissions. How do I tell the document folder to inherit its unique permissions to all subfiles? The subfiles are in pdf-format. Also, at the end of my flow how do I restore the initial inheritance on the document folder AND its subfiles, so that no one has access after the flow stopped?

 

(Also, what does "copySubscopes" mean in context of breakingInheritance in a HTTP request?)

 

Thanks in advance for your help!

Categories:
I have the same question (0)
  • HamidBee Profile Picture
    932 Super User 2024 Season 1 on at

    To inherit the unique permissions of the folder to all subfiles, you can use the following steps:

     

    1. Go to the document library where your folder is located.
    2. Select the folder whose permissions you want to inherit.
    3. Click on the “…” icon next to the folder name and select “Manage Access”.
    4. Click on “Advanced” in the bottom right corner of the window.
    5. Click on “Stop Inheriting Permissions” in the top right corner of the window.
    6. Select “Copy Permissions” in the pop-up window and click “OK”.

    This should inherit the unique permissions of your folder to all subfiles.

     

    Regarding your second question, “copySubscopes” is a parameter used in SharePoint REST API calls to specify whether or not to copy permissions from parent scopes when breaking inheritance. If set to true, it will copy permissions from parent scopes; if set to false, it will not copy permissions from parent scopes.

     

    Finally, to restore initial inheritance on the document folder and its subfiles at the end of your flow, you can use these steps:

     

    1. Go to the document library where your folder is located.
    2. Select the folder whose permissions you want to restore.
    3. Click on the “…” icon next to the folder name and select “Manage Access”.
    4. Click on “Advanced” in the bottom right corner of the window.
    5. Click on “Restore Inheritance” in the top right corner of the window.
    6. Select “Delete Unique Permissions” in the pop-up window and click “OK”.

    This should restore initial inheritance on your document folder and its subfiles, so that no one has access after your flow stops.

  • NilsR Profile Picture
    2 on at

    Hey @HamidBee,

    thanks for your comment, this looks like a manual approach, but I was looking for an automated one. During the execution of the flow the document folder (which initially has no permission for anyone) should permit a couple of O365-Groups, which is only possible using a HTTP Request, then after a few steps delete these permissions.
    Using the HTTP Request I want to inherit the permissions to all subfiles.
    May you tell me how to do this in a automated approach using HTTP Requests only?
    Best, Nils

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 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard