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

How to check document library has broken inheritance or not, if not broken then break inheritance using power automate.
Thanks,
Hi , @Shafdev
You can refer to my test flow:
_api/web/lists/getbytitle('Your Library Name')?$select=HasUniqueRoleAssignments
outputs('Send_an_HTTP_request_to_SharePoint')?['body']?['d']?['HasUniqueRoleAssignments']
true
_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