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 / How to use Get group m...
Power Automate
Suggested Answer

How to use Get group members from Azure Security groups BUT only if Account Status is Enabled

(1) ShareShare
ReportReport
Posted on by 4
Hi All,
 
Wondering if anyone has a suggestion - after looking at raw output of get group members it doesn't seem to include Account Status so I can't easily apply an if statement.
 
Has anyone successfully managed to pull this data into a flow and use it to exclude disabled accounts?
 
Many thanks
 
Andrew
Categories:
I have the same question (0)
  • Suggested answer
    Michael E. Gernaey Profile Picture
    53,442 Super User 2025 Season 2 on at
    Hi,
     
    Please share what you have already for future reference.
     
    0. Generate an Array (to hold valid members)
    1. You can grab the users from that list
    2. Apply to each through the users
    3. Call Get User profile v2 and get their status
    If the status is Enabled, add them to your Array
     
    Now you have a list.
     
     
  • CU15081623-1 Profile Picture
    4 on at
    Thanks @flmike :) and sorry for not sharing what i have - I already have an array, and successfully get all group members for the groups list in my excel spreadsheet in OneDrive and it then goes on to check their licences and produce a csv output for me - I just need to remove disabled azure accounts  before the flow starts checking licences...
     
    Assuming I grab the email address from the get group members and use that in the get user profile (v2) can you help me with the if statement to only include enabled accounts to proceed onto the next step?
     

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