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 / check document library...
Power Automate
Answered

check document library has broken inheritance or not

(0) ShareShare
ReportReport
Posted on by 180

 

How to check document library has broken inheritance or not, if not broken then break inheritance using power automate.

 

 

Thanks,

Categories:
I have the same question (0)
  • Verified answer
    v-yueyun-msft Profile Picture
    on at

    Hi , @Shafdev 

    You can refer to my test flow:

    vyueyunmsft_0-1715232956899.png

    _api/web/lists/getbytitle('Your Library Name')?$select=HasUniqueRoleAssignments

    outputs('Send_an_HTTP_request_to_SharePoint')?['body']?['d']?['HasUniqueRoleAssignments']

    true

     

    vyueyunmsft_1-1715233022020.png

    _api/Web/lists/getByTitle('Your Library Name')/BreakRoleInheritance(copyRoleAssignments=false,clearSubscopes=true)

     

     

    {
    "Accept": " application/json;odata=verbose",
    "Content-type": " application/json;odata=verbose",
    "IF-MATCH": "*",
    "X-RequestDigest": "$(\"#_REQUESTDIGEST\").val()"
    }

     

     

    If this reply can help you , you can click mark this reply as solution (Accept solution) which can help more people, thanks in advance! 

     

    Best Regards,

    Yueyun Zhang

     

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

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard