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 / Editable only to some ...
Power Apps
Unanswered

Editable only to some users

(0) ShareShare
ReportReport
Posted on by 98

Hi, 

 

I am trying to create a page where users can see the tasks of an activity. But I want all users to only be able to edit 2 fields, but some users can be able to edit everything.

 

I am using this video as a reference:

https://www.youtube.com/watch?v=ubnPqwWdBL0&t=1165s 

 

The task title container is where I am trying to apply this.

 

The yellow lines are the only thing all users can edit, they should be able to edit the rest. 

Aydeedglz_0-1716221437783.png

 

I have this variable: 

Set(varUserEmail, User().Email)
In this variable I have the users that can edit everything. 

 

Categories:
  • Ami K Profile Picture
    15,689 Super User 2024 Season 1 on at

    @Aydeedglz - I have no idea what a "task title container" is and I doubt anyone else will know what you're talking about.

     

    However, as I understand it, you have an EditForm control and you want specific DataCards to be editable for all users. Assuming your data source is SharePoint, I would recommend creating a separate list populated with user emails.

     

    You can then perform a LookUp function on that list to determine if the current logged in user exists in that list. If the user exists in that list, all DataCards will be editable.

     

    For example, on the App OnStart property, create the following Global Variable:

     

    Set(
     gbl_has_permission,
     !IsBlank(
     LookUp(
     'Your List',
     'Email Field' = User().Email
     )
     )
    )
    

     

    You can then apply the below onto the DisplayMode property of the DataCards you want to be editable:

     

    If(
     gbl_has_permission,
     DisplayMode.Edit,
     DisplayMode.View
    )

     

  • Aydeedglz Profile Picture
    98 on at

    Hi,

     

    The variable is not storing data

     

    Set(varPermission,!IsBlank(LookUp('List Users', Title = User().Email).Title))


    varPermission = Blank

  • Ami K Profile Picture
    15,689 Super User 2024 Season 1 on at

    @Aydeedglz - are you certain the output of User().Email and the email in the Title field match?

     

    Separately, you do not need to include the Title field in the LookUp.

     

    Set(varPermission,!IsBlank(LookUp('List Users', Title = User().Email).Title))

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

#2
WarrenBelz Profile Picture

WarrenBelz 204 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 122

Last 30 days Overall leaderboard