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 / Office 365 User Search...
Power Apps
Answered

Office 365 User Search and Select

(0) ShareShare
ReportReport
Posted on by 261

So i've spent the best part of the day trying to do this with no luck so I'm back to ask the professionals again! 

 

Please have alook below and point me in the right direction is possible! Smiley Frustrated

 

In a nutshell I need the image below to allow the app user to search (nomineesearch_1) through office 365 users which will be displayed via the gallery (nomineegal_1). When they start to type, the gallery should filter the names down and when they (onselect) the filtered name it should move to another gallery (TextInput1) entry as only the name with an icon to delete it incase the user has made a mistake. 

When the user chooses the name the search box should also reset ready for another search "if needed" 


Solution.png

 

When the user presses Continue (continuebutton1_1) the name collected from text input one need to be displayed on the next page as a list. 

I'd like it work very closely to the New Screen/People page but I cant seem to even connect my gallery to the data source like it does with this page so this is for anyone looking for a real challenge that can break it down into an easy to digest guide for me. 

If you've come this far and can help. Thanks in advance! Smiley Very Happy

Solution.png
Categories:
I have the same question (0)
  • Verified answer
    K-A-R-L Profile Picture
    715 on at

    Hi @Courtney ,

     

    On your TextInput1 (Gallery with collected Names):

    Set Items to:

    SelectedNames


    Add a label to this gallery and set the Text to:

    ThisItem.Names

    Add the eraser Icon here and set the OnSelect Property to:
    Remove(SelectedNames, ThisItem)

    On nomineegal_1:

     

    Set Items to:

    If(IsBlank(TextInput1.Text), Office365Users.SearchUser({searchTerm:""}),If(Not(IsBlank(Trim(TextInput1.Text))),Office365Users.SearchUser({searchTerm:Trim(TextInput1.Text)})))

     

    Add Label here set the Text to:
    ThisItem.DisplayName

     

    Set OnSelect Property to:

    Set(SelectedName, ThisItem.DisplayName);
    Collect(SelectedNames, {Names:ThisItem.DisplayName})

     

    For you continuebutton1_1: just add Navigate(to the next screen)


    On the next screen just set the Item of the Gallery (list) to the collection SelectedNames.

    Please check this video.


    Thanks,
    K-A-R-L


    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

     

     

     

  • v-yuxima-msft Profile Picture
    Microsoft Employee on at

    Hi @Courtney 

     

    Could you please reference @K-A-R-L 's suggestion firstly, if the issue is fixed, please accept that as soltuion.

     

    More information:

    connection-office365-users#search-for-users

     

    Best Regards.

    Yumia

  • Courtney Profile Picture
    261 on at

    Can't give more than one thumbs up myself. Thanks so much for this. 

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 345 Most Valuable Professional

#2
11manish Profile Picture

11manish 207 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 177

Last 30 days Overall leaderboard