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

Community site session details

Session Id : 73cDF8NbUbKxyjrBTDMyoU
Power Apps - Building Power Apps
Answered

Azure AD Get Group Members

Like (0) ShareShare
ReportReport
Posted on 2 Mar 2021 19:26:15 by

Hi

 

I want to get Azure AD group members to a drop down list of power apps. I'm trying to get it from Power automate since I read users will need Azure admin right if I to use the below code on Power apps. I haven't tested it yet with non-admin user

AzureAD.GetGroupMembers("GroupId").value

 If admin right is required. then I need to get it from power automate .

here is what I have done so far but I'm unable to retrieve the final output to Power Apps.

 

Any idea how to set the condition. I need to send the 'members' as output. Any idea

 

 

 

  • Verified answer
    indhaa Profile Picture
    on 21 Sep 2022 at 17:13:48
    Re: Azure AD Get Group Members

    Hi,

     

    Add the data source Office365Groups to your App.

    In the item property of the Combo Box add as below. You can Filter it too. I only added the Sort for you

    Sort(Office365Groups.ListGroupMembers("Enter the Group ID here").value,displayName)

     

    Inside the inserted comma add the group ID.

     

  • GunnarAB Profile Picture
    2 on 21 Sep 2022 at 11:53:44
    Re: Azure AD Get Group Members

    Hi @indhaa , can you describe your solution in more details.

    Kind regards,

    Gunnar

  • indhaa Profile Picture
    on 24 Jul 2022 at 09:13:20
    Re: Azure AD Get Group Members

    It is given in the solution that you need to use Office365Group connection instead of AzureAD. You missed that part.

     

    If you need any more help, LMK



  • GrischkePro Profile Picture
    285 on 20 Jul 2022 at 18:16:53
    Re: Azure AD Get Group Members

    @indhaa it would be great if you shared your solution. Saying you found one without actually saying what it is, is idiotic... <facepalm>

  • indhaa Profile Picture
    on 05 Mar 2021 at 19:38:48
    Re: Azure AD Get Group Members

    found the solution now

  • indhaa Profile Picture
    on 05 Mar 2021 at 17:39:50
    Re: Azure AD Get Group Members

    Hi

     

    I can get the member using Office365Groups connection. No need to user Azure connection. Just one issue. I want the user to select the user but by default one user is already selected from the drop down list. Is there a way I can set the default one to blank. 

  • indhaa Profile Picture
    on 03 Mar 2021 at 13:04:01
    Re: Azure AD Get Group Members

    I'm getting the list now. Seem this option is not the best since I need to give consent for all users, 

    Need to think of another way to do this

  • indhaa Profile Picture
    on 03 Mar 2021 at 08:58:46
    Re: Azure AD Get Group Members

    I'm trying to check from PowerApps now. I tried to use Response first but it is Premium. Anyway want to ask if the group need to be set in a particular way. It is not showing any names. Maybe because it is a mail-enabled security group? https://docs.microsoft.com/en-us/azure/active-directory/fundamentals/active-directory-manage-groups

     

     

    indhaa_0-1614761200181.png

     

     

     

  • Community Power Platform Member Profile Picture
    on 02 Mar 2021 at 20:54:21
    Re: Azure AD Get Group Members

    Hi,

     

    Something like this would work if you wanted to go down that route but I would say that the Flow would run under the context of the user that initiates the button in the Power App anyway.

     

    HenryARPhillips_0-1614718399510.png

    HenryARPhillips_1-1614718422963.png

     

    In terms of the schema for the response, you will want to run it once and then take the output of the response and feed in back in as a sample to build out the schema.

     

     

     

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

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 637 Most Valuable Professional

#2
stampcoin Profile Picture

stampcoin 570 Super User 2025 Season 2

#3
Power Apps 1919 Profile Picture

Power Apps 1919 473

Loading complete