cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ariel_j
Frequent Visitor

Filter Gallery by Current User where Email Matches People Field

How are we able to delegate by user email when the email address we use to login to O365 is not the same as the primary email address.

1 ACCEPTED SOLUTION

Accepted Solutions
v-qiaqi-msft
Community Support
Community Support

Hi @ariel_j

Have you solved your problem?

Do you want to get the user email address?

Could you please share a bit more about the scenario?

 

Actually, the information returned by User() function is for the current PowerApps user. It will match the "Account" information that is displayed in the PowerApps players and studio, which can be found outside of any authored apps. This may not match the current user's information in Office 365 or other services including SharePoint user profiles. 

 

As an workaround, I think you should use the Office365Users() to search for this FullName and get user's email address.

First(Office365Users.SearchUser({searchTerm:User().FullName})).Mail

 

Best Regards,
Qi

View solution in original post

2 REPLIES 2
v-qiaqi-msft
Community Support
Community Support

Hi @ariel_j

Have you solved your problem?

Do you want to get the user email address?

Could you please share a bit more about the scenario?

 

Actually, the information returned by User() function is for the current PowerApps user. It will match the "Account" information that is displayed in the PowerApps players and studio, which can be found outside of any authored apps. This may not match the current user's information in Office 365 or other services including SharePoint user profiles. 

 

As an workaround, I think you should use the Office365Users() to search for this FullName and get user's email address.

First(Office365Users.SearchUser({searchTerm:User().FullName})).Mail

 

Best Regards,
Qi
ariel_j
Frequent Visitor

Hi, the problem was solved using Office365Users.MyProfile().Mail in [SharePoint column name].Email

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Users online (2,437)