I have been able to break inheritance on a list and also set individualized list item permission. However, what I have not been successful at is determining if the list item is using inherited permissions or if it is using unique permissions. My flow needs to do a check on the list item FIRST. I need the returned value (maybe ture/false) to pass to a condition that processes the rest of the flow based on the (yes/no true/false) value. I don't know how to implement this in flow.
I understand that I'm supposed to use an API to get the unique role assignments, but what action(s) is used and what is the procedure for retrieving the returned data? My current implementation initalizes a variable of type 'string' with the value of: _api/lists/getByTitle('listtitle')/items(id)/HasUniqueRoleAssignments
What step(s) am I missing? What action(s) and what trigger(s) should I be using and what would the settings be for each?
Thank you.
A.Dove
In using the 'Send HTTP message to SharePoint' action, could you provide some insight into the values I'd place into the fields? I've experimented with this action, but haven't gotten it to work. I presume it's because of how I'm configuring the action control.
Hello, @adove!
Thank you for posting on the Flow Community Forum! Have you had an opportunity to apply @v-bacao-msft‘s recommendation to adapt your Flow? If yes, and you find that solution to be satisfactory, please go ahead and click “Accept as Solution” so that this thread will be marked for other users to easily identify!
Thank you for being an active member of the Flow Community!
-Gabriel
Flow Community Manager
Hi @adove,
I am afraid that SharePoint connector does not have a suitable action to check list permissions in Flow currently.
You could post this idea in the Flow Ideas forum, so it might be considered for future releases.
https://powerusers.microsoft.com/t5/Flow-Ideas/idb-p/FlowIdeas
If you want to use an API to get the unique role assignments, you might consider using Send an http request to SharePoint action.
please check and see if the following link would help:
https://docs.microsoft.com/en-us/connectors/sharepointonline/#httprequest
Best Regards,
Barry