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?
Solved! Go to Solution.
Hi @NE0,
QiTest is a guest user in my Azure AD.
I directly populate the Combo Box with
Office365Users.SearchUser({searchTerm:"",top:999})
Hi @NE0,
Do you want to display guest users info within Power Apps?
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.
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?
Hi @NE0,
QiTest is a guest user in my Azure AD.
I directly populate the Combo Box with
Office365Users.SearchUser({searchTerm:"",top:999})
User | Count |
---|---|
170 | |
95 | |
77 | |
72 | |
59 |
User | Count |
---|---|
215 | |
166 | |
97 | |
95 | |
74 |