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 / Get Guest User Mobile ...
Power Apps
Answered

Get Guest User Mobile Phone

(0) ShareShare
ReportReport
Posted on by 21

I have been succesfully using the Office 365 Users connector in our Power App which pulls in the Mobile Phone of a selected user on the fly with this formula:

 

    Office365Users.UserProfile(DataCardValue4.Selected.Email).mobilePhone

 

However, this doesn't work with external / guest users even though they are in the Directory. It returns this error:

 

"Office365Users.UserProfile failed - status 404 - No user found with the specified id"

 

I realize this is because they don't have a Profile and was suggested to use User() instead, but this is only good for the current user. We are filling out the PowerApp on behalf of the external user and want to enter their email and fetch the associated mobilePhone which exists in Azure AD.

 

Is it possible to pull the mobile phone # of a guest user in Power Apps?

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

    Hi @NE0,

    Do you want to display guest users info within Power Apps?

     

    vqiaqimsft_0-1647927550775.png

     

    Actually, the identifier of a guest users is not stable. For some users, searching UPN works like a charm but for other users, searching Id directly will do.

    For you ,try an identifier like Id.

  • NE0 Profile Picture
    21 on at

    Yes, currently the User field only auto completes for Internal users and some select Guest users, I can't figure out why some don't show. For a test gmail account, the guest shows in the drop down when entering their full email however, the associated mobile phone does not populate based on my formula. Using .Id instead of .Email as you suggest does not work either.

     

    Is your 'QiTest' user a Guest in your tenant? Is that bound to a SharePoint person field or is it a custom Power Apps drop down?

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

    Hi @NE0,

    QiTest is a guest user in my Azure AD.

    I directly populate the Combo Box with 

    Office365Users.SearchUser({searchTerm:"",top:999})

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 382 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 329

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard