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 / PowerApps for Teams: C...
Power Apps
Answered

PowerApps for Teams: Can't use Office365Users to search for users?

(0) ShareShare
ReportReport
Posted on by 112

I am editing an app within PowerApps for Teams and I am noticing that I cannot use a ComboBox as a people picker, where I can in the full PowerApps studio. I have added Office365Users as a Data Source.

 

In PowerApps Studio, the following code works on a ComboBox in the Items property to be able to search: 

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

 

However, in PowerApps for Teams, despite setting the data field to DisplayName when I add in this same code I get the red lines underneath. Ive also tried the following:

 

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

 

However, interestingly, when I just leave the code as Office365Users.SearchUser() I get a limited list of mailbox and user display names to pick from (but not able to search).

 

In this instance, I have to use Power Apps for Teams. Does anyone have a solution?

 

Categories:
I have the same question (0)
  • ANB Profile Picture
    7,252 Super User 2026 Season 1 on at

    Hi @elfreddos, Try this:

    Office365Users.SearchUser({searchTerm:ComboBox3.Selected.Mail}).DisplayName

    -----------------------------------------------------------------------------------------------------------------------------

    I hope this helps.

    Please click Accept as solution ✅ if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs up.👍

    Thanks,
    ANB


  • elfreddos Profile Picture
    112 on at

    This also doesn't work:

    1000044503.png

     

    And these are the associated errors:

    1000044502.png

    And:

    1000044501.png

  • v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @elfreddos,

    Actually, the combo box in Teams is not the same one in Power Apps(not in Teams).

    If you want to use the combo box with SearchText property, you need to turn on the modern control function.

    vqiaqimsft_2-1704249476817.png

     

    Try this:

    ForAll(Office365Users.SearchUser({searchTerm:Self.SearchText}),DisplayName)

    vqiaqimsft_1-1704249426785.png

     

     

  • elfreddos Profile Picture
    112 on at

    I've switched that on, and tried your code, but this still.doesn't work. Btw, themes are something purely visual, not functional. Why would switching that on change anything?

     

    I obviously have switched it on where it was off before, but it was also in the "retired" category as per your screenshot, so maybe that's why it doesn't work? 

  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @elfreddos,

    I have used the modern controls, so I succed.

    vqiaqimsft_1-1704333932594.png

     

    If you could not use the modern controls, the only way is to copy the classci combobox to Teams.

     

    For PowerApps for Teams, this is the only way.

     

     

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
Vish WR Profile Picture

Vish WR 936

#2
11manish Profile Picture

11manish 628

#3
Valantis Profile Picture

Valantis 604

Last 30 days Overall leaderboard