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 / Power Apps Permissions...
Power Apps
Unanswered

Power Apps Permissions Formula

(0) ShareShare
ReportReport
Posted on by 185

I have created permissions to an app that allows some users to edit a form and everyone else only has ability to view it. This is the formula I used under "DefaultMode" for the form: 

 

If(User().Email = "email" 

Or User().Email = "email"

Or User().Email = "email"

Or User().Email = "email"

Or User().Email = "email"

Or User().Email = "email", 

Formode.Edit, FormMode.View) 

 

The formula is showing no errors. However, when I added about five more users to that list, they still only have viewing permissions, but the people I had put into the formula a few weeks back do have permissions. So why do some of the users in the same formula have permissions while others don't? Also, I know it is case sensitive and all emails are correct. I copy and pasted them out of the gal and tripled checked them.

Categories:
  • Ash13 Profile Picture
    576 on at

    Not sure if it's just a typo here, but you have written Formode.Edit instead of FormMode.Edit

     

    Other than that, have you tried with the In operator instead?

     

    If(User().Email in ["email","email"...], FormMode.Edit,FormMode.View)

     

  • gjbannister01 Profile Picture
    185 on at

    Ah that's just a typo haha I can't copy and paste from my other computer to this one. 

  • mmollet Profile Picture
    3,187 on at

    This is how I did the same thing after getting sick of having to add emails and remove them from the code all the time. Just made a SP list that stores the things I need for the apps etc. One of them being "Admin" or "Hourly" etc so that I can display only what I want based on that value.

     

    Screen OnVisible: Set(currUser, LookUp(EmployeesV3, FullName = User().FullName));

    DispalyMode of button: If(currUser.Role = "Admin", DisplayMode.Edit, DisplayMode.Disabled)

  • gjbannister01 Profile Picture
    185 on at

    Okay to make sure I have it right since it's not working: 

     

    Set(variable, LookUp('DataSource', ColumnName= User().Email)); 

    If(variable.Role = "ColumnName", DisplayMode.Edit, DisplayMode.View)?

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 234 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 207 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 169

Last 30 days Overall leaderboard