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 / Show Edit Button for C...
Power Apps
Unanswered

Show Edit Button for Current User

(0) ShareShare
ReportReport
Posted on by 55

I have a Edit Icon that I have set to visible off.  I only want it to show only when the current user is looking at there record. has a person field that equals the current user email.

I have tried 

Office365User.MyProfile().Mail - Returns my email

User().Email - Returns my email

I has also setup varUserEmail - returns my email

Can not figure how to compare any of this with people field in the record.

I have the same question (0)
  • JW-02101845-0 Profile Picture
    Microsoft Employee on at

    Two thoughts:

    1) This isn't a GCC/H/DoD related question, so you should probably post it to the "Building Power Apps" discussion to get a faster response.

    2) Security through obscurity is not a best practice. If you want to ensure users can't make changes to other people's records, you should set that on the data source.  If you're using Dataverse, you can leverage the Datsourceinfo PowerFx function to check a user's permissions: DataSourceInfo function - Power Platform | Microsoft Learn

     

    Good luck!

  • MtryDoc Profile Picture
    55 on at

    Thank you I will post this in the other forum.  I understand obscurity is not best practice, although this is more of a convivence app than anything else.

  • FocusRach Profile Picture
    63 on at

    Hi @MtruyDoc

    I have a few apps and permission configured for very similar scenarios. I just posted this but for some reason it's not displaying, so I'm trying to repost - sorry for any duplications!

    For solutions that don't have any hard compliance or cybersecurity requirements/data protections required, the items below have been very helpful to ensure our end users don't accidently stumble across undesired data.

    Note: This is specific to GCC High. 

    Power Apps

    • Note: I've run into scenarios where the User().Email and User().UPN did not match and caused an issue in filters. Always verify the data your matching is displaying what you expect!
    • Icon Visibility in Gallery Records - For this you would set the Icons Visibility to something like this:
      • If( ThisItem.FieldName.Email = User().Email, true, false)
    • Icon visibility on Screen for gallery selected item - Slightly different but the function here would be similar to this:
      • If( GalleryName.Selected.FieldName.Email = User().Email, true, false)

     

    SharePoint Online

     

    • Note: There are various ways for your end users to accidently or intentionally stumble across data you may not want them to. The options below cover the scenarios I've been made aware of (SPO Search, Browser Dev tools, etc)
    • OOTB SharePoint Permissions - Depending on the option you select, this can help you refine permissions per item level based on who has created an item. This will break inheritance per item. Get here by going the list > List Settings > Advanced Settings > Item-Level Permissions

    FocusRach_0-1708715253282.png

     

     

    Hope this helps! Happy Friday!

  • FocusRach Profile Picture
    63 on at

    @MtruyDoc  -  If you post in the other forums, keep in mind what tenant type you are working in. Commercial Microsoft users have different features then those of us living in GCC High. Some of their feedback may not be available to us yet or at all, ever. I love this forum because it's for people like us trying to make things work in GCC High or the like and there are differences!

    That being said, @jwillisrosemsft - are there restrictions for posting for power automate or power apps help in this forum if the user is in the specified environments? I actually have previously shared information here because I'm developing solutions in GCC high and wanted to share the knowledge!

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 325 Most Valuable Professional

#2
11manish Profile Picture

11manish 165

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 88 Super User 2026 Season 1

Last 30 days Overall leaderboard