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 / Display users from O36...
Power Apps
Answered

Display users from O365 Users "Group" in a People Picker

(0) ShareShare
ReportReport
Posted on by

Hello everyone!

 

I'm using O365 Users as a Connector in a Combo Box to show users from O365 Users. However, I would not like to show all the users that are listed in my O365, but rather only all the users within one group. I posted the code that I used that successfully shows every user within my entire O365 Users data connector.

 

Office365Users.SearchUser({searchTerm:ComboBox3.SearchText})

 

 Thank you! 🙂

jharville_1-1598384579024.png

 

 

Categories:
I have the same question (0)
  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @jharville 

    If you are only concerned over members of one group, you can use the AzureAD connector for this.

    You will need to know the ID of the group that you want first.  You can get this in your Azure Portal under the AzureAD and then groups - all the ID's will be listed.

    Then add the AzureAD connector to your App.  Then set the Items property of your combobox to:

        AzureAD.GetGroupMembers("theIDfromAzure").value

     

    I hope this is helpful for you.

  • jharville Profile Picture
    on at

    I really do appreciate your response, I think that could definitely be the solution. I followed your instructions, pulled the ID, and placed the formula into my code but get a syntax error with the semi-colon. It's saying that it's expecting an operator (+, &, etc.) where the semi-colon is.

     

    Would you know why it's throwing that error? Am I allowed to have those two line of code in the same "Items" property?

    AzureAD.GetGroupMembers("9da2a20c-a33f-43cb-bbb5-6429fb515cd2").value;
    Office365Users.SearchUser({searchTerm:ComboBox3.SearchText})

     

    jharville_1-1598404726003.png

     

     

  • jharville Profile Picture
    on at

    Looking back at the code, I realized I didn't need my previous line of code to manually pull from O365 users since we're pulling directly from Azure AD. Everything is functional now! Thanks again for your help; I really do appreciate it! 🙂

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 476

#2
WarrenBelz Profile Picture

WarrenBelz 365 Most Valuable Professional

#3
Vish WR Profile Picture

Vish WR 339

Last 30 days Overall leaderboard