web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to Get the Azure A...
Power Automate
Answered

How to Get the Azure AD Group ID by Name

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi, I need to list all members of a security or distribution group  whose name is known.

the "Get Group" action requires the group id as input. 

 

How do I retrieve the group id?

 

Thanks!!!

Categories:
I have the same question (0)
  • abm abm Profile Picture
    32,985 Most Valuable Professional on at

    Hi @rodrigo_menende 

     

    Have a look at graph API method to get the group names and related details.

     

    GET https://vssps.dev.azure.com/{organization}/_apis/graph/groups?api-version=5.1-preview.1

     

    Reference:

    https://docs.microsoft.com/en-us/rest/api/azure/devops/graph/groups/list?view=azure-devops-rest-5.1

     

    Thanks

  • rodrigo_menende Profile Picture
    Microsoft Employee on at

    Thanks for your reply.

     

    Will look on how to get this from a flow.

    I was expecting a more end user friendly alternative, without coding. Couldn´t find it so far, looks like it´s not implemented in the connector.

     

    Thanks!

  • Verified answer
    abm abm Profile Picture
    32,985 Most Valuable Professional on at

    Hi @rodrigo_menende 

     

    There are no connectors available for this. You can execute the API using HTTP connector without coding.

     

    Please have a look at these posts.

     

    https://flow.microsoft.com/en-us/blog/http-card-tutorial/

     

    http://johnliu.net/blog/2018/10/microsoft-flow-http-trigger-request-trigger-and-you-probably-dont-want-to-use-it

     

    Thanks

  • Dliryc Profile Picture
    10 on at

    Hello,

     

    I found one working solution (in my case).

     

    There is just one condition :

    You need to know at least one member of the security or distribution group.

     

    1) Use Get-groups of a user (the known user as stated above). You then have a list of all the ID groups of the user

    Dliryc_0-1656065361584.png

     

    2) Next step is using Get-Group by using "value"; it gets all ID groups of the user one by one and gives the display name of each

    Dliryc_1-1656065405034.png

     

    3) Use the "Condition" to test if the group Display Name matches the targeted group

    Dliryc_3-1656071050207.png

     

    4) If condition is true, then you found the id group, congratulations !

    For an unknow reason, it's never "True" for me, but it worked in another flow, with dynamics values...

     

    But I hope you can understand the logic !

     

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 594

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 281 Super User 2026 Season 1

Last 30 days Overall leaderboard