Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building 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

 

 

 

  • Verified answer
    indhaa Profile Picture
    on at
    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 at
    Re: Azure AD Get Group Members

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

    Kind regards,

    Gunnar

  • indhaa Profile Picture
    on at
    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 at
    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 at
    Re: Azure AD Get Group Members

    found the solution now

  • indhaa Profile Picture
    on at
    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 at
    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 at
    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 at
    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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,524 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,906 Most Valuable Professional

Leaderboard