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 Apps / Fetch Azure AD Group d...
Power Apps
Answered

Fetch Azure AD Group details using Group Name.

(0) ShareShare
ReportReport
Posted on by 106

Hi All,

 

We have a requirement that we need to add users to the Azure AD security group using the canvas app. We have the AD group name with us. Using the AD group name how we can find the Object OD of the group. How to achieve this requirement.

 

Any Sugession?

Categories:
I have the same question (0)
  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @Abhilash If you know the Group ID (you should be able to get it from your Admin), you can use the GetGroup function in the Azure Ad Connector to get the details.

     

    Please remember to give a 👍 and accept my solution as it will help others in the future.

  • Verified answer
    v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @Abhilash :

    You could use this graph API to create a custom connector to search for the group by group name:

    https://graph.microsoft.com/v1.0/groups?$filter=adatumisv_courses/displayName eq 'YourGroupName'

    vbofengmsft_0-1640916470158.png

    vbofengmsft_1-1640916499532.png

    In addition,if you do not know how to create a custom connector,I think this link will help you a lot:

    How to connect Microsoft Graph API in PowerApps 

    Best Regards,

    Bof

     

  • 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 in this demonstration, 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!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 519 Most Valuable Professional

#2
11manish Profile Picture

11manish 489

#3
Haque Profile Picture

Haque 327

Last 30 days Overall leaderboard