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 get a list of A...
Power Automate
Unanswered

How to get a list of Azure AD groups

(0) ShareShare
ReportReport
Posted on by 6

Hi,

 

I need to obtain a list of all Azure AD groups following certain naming convention, to then list the members and perform some functions.  How can I get this list of groups and load in an array?

 

Thanks

Categories:
I have the same question (0)
  • Verified answer
    Expiscornovus Profile Picture
    33,189 Most Valuable Professional on at

    Hi @josepturon,


    Can you share a bit more details about that naming convention? Do the groups for example always start with a certain set with characters? 

     

    In that format you could probably use a List Groups Graph API call with a $filter query parameter and a startswith.

     

    For the members you can use an $expand query parameter.

    https://graph.microsoft.com/v1.0/groups?$filter=startswith(displayName,'contoso')&$expand=members

     

  • josepturon Profile Picture
    6 on at

    Thanks a lot !!

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

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard