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 / Search by Phone Number
Power Apps
Unanswered

Search by Phone Number

(1) ShareShare
ReportReport
Posted on by 2
 
 
Hi, Is there any ways to search a user by his/her phone number?
 
 
I tried this 
Office365Users.SearchUserV2({searchTerm: "123"}).value
but it turned out for me that it searches only among text fields (names and emails)
 
 
I tried the graph http get request
Set(gResponse2,Office365Groups.HttpRequestV2("https://graph.microsoft.com/v1.0/users?$filter=businessPhones/any(c:c eq '377')","GET",""))
but it retrieves with URI path is not a valid graph endpoint
 
I tried a much simplier:
Set(gResponse2,Office365Groups.HttpRequestV2("https://graph.microsoft.com/v1.0/me","GET",""))
but it gives the same.
 
I also tried this graph request from powerautomate flow, (different HTTP request steps) but the same as from APP.
(even if i copy the request directly from graph explorer (where I can see the retrieved JSON at least for the /me.
 
I think I tried everything what is in my mind, but nothing worked for me.
Categories:
I have the same question (0)
  • scalca Profile Picture
    254 Moderator on at
    What you can do is to use Search() function from PowerApps.
    For example
    Search(Office365Users.SearchUserV2({isSearchTermRequired:false}).value, TextInputField.Value, TelephoneNumber)
     
    SearchTerm:
    Search string (applies to: display name, given name, surname, mail, mail nickname and user principal name)
  • mrcwojcik Profile Picture
    68 on at
    In Graph API documentation you can check, that User query for mobilePhone allows only for looking by "eq", "startsWith" or checking if field is null.
     
     
    Best way to handle this, would be fetch all Users and filter list in flow/app.
  • SC-08020752-0 Profile Picture
    2 on at
    I've already considered to fetch all the users:
    - but as I know the searchuser fetches only the first 1000. we have 30-40 thousand of user.... It seems to be not really feasible in terms of time, data amount etc. 
    I can't believe that there is no way on server side to perform this operation. (In an relational DB to search over 40T record - even substring search is ridiculously low effort - in MS word it is impossible operation ). :-(  :-( :-(  :-(  :-( :-(  :-(  :-( :-( 

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 914

#2
11manish Profile Picture

11manish 627

#3
Valantis Profile Picture

Valantis 598

Last 30 days Overall leaderboard