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 if person in a p...
Power Automate
Suggested Answer

Check if person in a person/group column in SharePoint list is in a SharePoint group.

(0) ShareShare
ReportReport
Posted on by 13
I have a flow that I am building that looks up if a person/group column in a SharePoing List is in a SharePoint group and if they are not in the SharePoint list then remove them from the SharePoint group. However, I can't seem to get the condition to come back as true.


Categories:
I have the same question (0)
  • Suggested answer
    Nived_Nambiar Profile Picture
    18,129 Super User 2025 Season 2 on at
    Hi,
     
    I think you need to change the approach here -
     
    Here you are using get items and prior to the apply to each loop- But what we can do is call the get items action inside the loop by applying the Odata filter query.
     
    See below
     
     
    Here i am looping through the results of send http request using apply to each loop and inside that using the get items - flow is trying to filter the items whose admin is equal to current iterating person's details.
     
    Here OData filter query is used to filter results in get items action.
     
    Now next use a condition which checks items are retrived from the get items action as shown below
     
    Expression: 
    length(outputs('Get_items')?['body/value'])
     
    This condition checks whether the output from get items is empty or not- if empty it means specified person in group does not exists in sharepoint list and if yes - you can add action in yes branch to delete the person details from the group.
     
     
    Hope it helps !
     

    Thanks & Regards,
    Nived N

    Stay connected:
    LinkedIn | YouTube | Blogs

    Was this answer helpful?
    If yes, please mark it as the solution by selecting the checkbox in the discussion thread.
    Your feedback motivates me to keep contributing. Thank you!

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

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard