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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Create ComboBox Office...
Power Apps
Unanswered

Create ComboBox Office 365 Users only show specific Usersthi

(0) ShareShare
ReportReport
Posted on by 232

Hello All,

 

I want to create a combobox dropdown that will use office365users but I only want it to display 3- 4 names of my choosing. Is there a way to do this? I have tried some different search typs with filters and cannot get it to work how I need.

 

My end games is a combobox that uses Office365Users and the dropdown would only show Display Name 1, Display Name 2, Display Name 3, Display Name 5.

 

I would like for it to look something like this.

Screenshot 2024-04-30 222508.png

 

Any ideas are greatly appreciated.

 

Collin

Categories:
I have the same question (0)
  • Gochix Profile Picture
    1,935 Moderator on at

    @collinktx ,

     

    What is the criteria of your 3 - 4 names to be displayed?

    _____________________________________________________________________________________
    Please give a thumbs up if I resolved your issue! Please click Accept as Solution to close the topic!

  • collinktx Profile Picture
    232 on at

    @Gochix,

     

    I was hoping to use their displaynames to show them. If I cannot do it that way I was going to look at possibly Department and JobTitle. I just am not sure that I can narrow it down to the 3-4 names I want to be selected with the Department and JobTitle.

  • collinktx Profile Picture
    232 on at

    @Gochix,

     

    My idea was something like:

     

    Filter(
     Office365Users.SearchUser(),
     DisplayName = "John Smith" ||
     DisplayName = "Jane Doe" ||
     DisplayName = "Jim Jones"
    )
  • Gochix Profile Picture
    1,935 Moderator on at

    @collinktx ,

    I don't think so you can filter Office 365 Users directly like this. 

    I would probably collect the User Data in the collection and then you can filter it through as you wish it.


    _____________________________________________________________________________________
    Please give a thumbs up if I resolved your issue! Please click Accept as Solution to close the topic!

  • collinktx Profile Picture
    232 on at

    @Gochix ,

     

    For my collection something like this to get the users?

    ClearCollect(
     colApproverUsers,
     Office365Users.SearchUserV2(
     {
     searchTerm: "Department",
     Top: 5,
     isSearchTermRequired: false
     }
     ).value
    );

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard