Skip to main content

Notifications

Power Automate - Using Connectors
Unanswered

How to check list permissions using API

(0) ShareShare
ReportReport
Posted on by 96

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

Categories:
  • adove Profile Picture
    adove 96 on at
    Re: How to check list permissions using API

    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.

  • Re: How to check list permissions using API

    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

  • v-bacao-msft Profile Picture
    v-bacao-msft on at
    Re: How to check list permissions using API

    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/sharepoint/dev/sp-add-ins/working-with-lists-and-list-items-with-rest

    https://docs.microsoft.com/en-us/connectors/sharepointonline/#httprequest

     

    Best Regards,

    Barry

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,422

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,711

Leaderboard

Featured topics