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 / How to search office36...
Power Apps
Unanswered

How to search office365 users in a DATACARD value

(0) ShareShare
ReportReport
Posted on by 259

Below given is a card having name as DATACARDVALUE1, i wanted to search the o365 users using the following formula in the VALUE prpoerty.

Rabbanisyed_0-1632662867330.png

 

Office365Users.SearchUser({searchTerm:DataCardValue1.}) After the (.) period i am getting the control properties not the text value.

 

 


.

Categories:
I have the same question (0)
  • eka24 Profile Picture
    20,925 on at

    Try

    Office365Users.SearchUser({searchTerm:DataCardValue1.Text

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

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • Rabbanisyed Profile Picture
    259 on at

    i can not see the .Text after the datacardvalue1 control as in my question mentioned

  • eka24 Profile Picture
    20,925 on at

    Please have you tried:

    Office365Users.SearchUser({searchTerm:DataCardValue1.Text}) 

    and it didn't work?

  • eka24 Profile Picture
    20,925 on at

    Please have you tried:

    Office365Users.SearchUser({searchTerm:DataCardValue1.Text}) 

    and it didn't work?

  • Rabbanisyed Profile Picture
    259 on at

    i tried but i am not getting  the TEXT after dot, i am mean Datacardvalue1.text is missing and getting value tried that too 

    Office365Users.SearchUser({searchTerm:DataCardValue1.Text}) 

  • CoDi Profile Picture
    5 on at

    Have you tried using the "SearchUserV2" extension in your formula?

  • vivek11 Profile Picture
    8 on at

    I am trying with SearchUser2, but formula is giving an error. I tried adding above Update property of data card.

    Can you please advise if I am doing it correctly

  • vivek11 Profile Picture
    8 on at

    Office365Users.SearchUser2({searchTerm:DataCardValue2.Text}) 

  • vivek11 Profile Picture
    8 on at

    vivek11_0-1692805882041.png

     

  • CoDi Profile Picture
    5 on at

    This worked for me. If your organization has a large list of users, you may also need to filter your search by a specific department or some other identifying aspect.

    For small lists of users:

    Office365Users.SearchUser({searchTerm:txtUserNameInput.Text, top:900})

    For larger lists of users:

    Filter(Office365Users.SearchUser({searchTerm: txtUserNameInput.Text, top:900}), Department = "your department name")

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 387

#2
timl Profile Picture

timl 340 Super User 2026 Season 1

#3
Vish WR Profile Picture

Vish WR 301

Last 30 days Overall leaderboard