web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Filter gallery by curr...
Power Apps
Unanswered

Filter gallery by current user when outlook and microsoft emails and display names are different

(0) ShareShare
ReportReport
Posted on by 8

I've encountered an issue with a fairly basic task for my client's app, filtering gallery items by the current user. In their powerapps environment, both the User().FullName and Email are different than the CreatedBy.DisplayName and Email respectively. For example, the outlook email and display name will show as "John Doe XYZ Company" and "JohnDoe@company.com", while the Microsoft account info is "John Doe" and "JohnDoe@xyz.com". This is a canvas app using a SP data connection. This is just how the Microsoft accounts are set up, but unfortunately, I cannot filter the gallery of SP list items by the current user using the Filter function that I am used to. Does anyone have any other ideas on how to limit the gallery to only show those items created by the current user? I've read about changing the list item permissions to unique permissions but I would like to avoid that if possible. 

Categories:
I have the same question (0)
  • Verified answer
    Ami K Profile Picture
    15,674 Super User 2024 Season 1 on at

    @skr151 - this might not work, but worth checking if adding the Office 365 Users connector as a data source into your app, and then using the following instead of User().Email:

     

    Office365Users.MyProfileV2().mail

     

  • skr151 Profile Picture
    8 on at

    That worked, thank you!

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 793 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 333 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard