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

Azure AD Get Group Members

(0) ShareShare
ReportReport
Posted on 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

 

 

 

Ge_members.PNG
Categories:
I have the same question (0)
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    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.

     

     

     

  • indhaa Profile Picture
    on at

    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

     

     

     

  • indhaa Profile Picture
    on at

    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 at

    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 at

    found the solution now

  • GrischkePro Profile Picture
    287 on at

    @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 at

    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



  • GunnarAB Profile Picture
    2 on at

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

    Kind regards,

    Gunnar

  • Verified answer
    indhaa Profile Picture
    on at

    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.

     

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 Apps

#1
11manish Profile Picture

11manish 541

#2
WarrenBelz Profile Picture

WarrenBelz 434 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 289

Last 30 days Overall leaderboard