Hi power team,
I'm trying to copy old files (more than 30 days after creation) from a production library to a "retired" library with a flow.
Everything looks fine but some files does have not inherited permissions.
My first approch is to list them to apply the same but I don't know how to list permissions of a file.
Can someone help me?
kind regards and thank you in advance for your answers
Hi @Kesh,
I found this nice thread in Q&A of Microsoft where AmosWu-MSFT suggested a bunch of nice REST API queries:
Below are two examples of these REST API queries in Power Automate.
1. Check if the file with ID 33 in the Documents Library has unique permissions
_api/web/lists/getbytitle('Documents')/Items(33)/HasUniqueRoleAssignments
2. Retrieve the principals and their assigned permissions for the same file.
_api/web/lists/getbytitle('Documents')/Items(33)/RoleAssignments?$expand=Member/users,RoleDefinitionBindings
Hi @Expiscornovus,
thank you very much I will try this today and tell you id it works.
kind regards and thank you again
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
User | Count |
---|---|
31 | |
30 | |
29 | |
21 | |
11 |