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 the Azure A...
Power Automate
Unanswered

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,865 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,865 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

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