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 / How to protect the all...
Power Apps
Answered

How to protect the all the textbox data from some users

(0) ShareShare
ReportReport
Posted on by 2

I have some users whom i want to allow them to view the screen but not do any changes on the screen.

Textbox Control are on normal screen (not in the edit form) - These textbox controls are connected/based on gallery selection.

 

I want the user to enter search criteria, view data , not to do any changes.

 

My idea, Can i put rectangle box, make it transparent, so  that if the user has permission which i will grant by check of his email id on the screen visible, rectangle box will hide, so that this user can edit, if not permission it will be on the top, but transparent, so that they view but cannot click any of the box or buttons.

 

OR 

These type of solution is done by another way out.

 

Please guide

 

 

Categories:
I have the same question (0)
  • Verified answer
    AmínAA Profile Picture
    1,228 Super User 2025 Season 2 on at

    Well, if you have the ability to create security roles, you could make a specific security role that would allow users within that role to have read-only permissions on specific tables, while users with another role would be able to have read and write permissions. However, I am speaking on a more rudimentary basis.

    AmnAA_0-1713202905628.png

     

    Given the code I gave you earlier for any and all textboxes, whatever email you input in between those “”, would act as a blacklist, in the code I gave you specifically. So, if I had per example my own email here, it would make it disabled, but still allow me to see it’s contents, if they had any

    AmnAA_1-1713202905630.png

     

     

    And what I said, is that you could do this on a more scalable way, if you had any kind of table, be it sharepoint list or dataverse table, and using a function that would allow you, on the start of the App, to filter though that list. If you need a explanation on how would I do this, feel free to ask!

     

    Hope this was helpful!

  • MIA27 Profile Picture
    2 on at

    You mean setting permission at the dataverse table level

  • Verified answer
    AmínAA Profile Picture
    1,228 Super User 2025 Season 2 on at

    While you could certainly just add a transparent rectangle and make it visible, you may find that user might be able to access the textboxes through other methods. The most secure way to avoid users from accessing the textboxes would be to set the mode to disabled, based on the user. So you could do something like

     

    If(User().Email <> "testemail@mail.com"; DisplayMode.Edit; DisplayMode.Disabled)

     

    Since I do not have much more context on your situation, that is what I would recommend. Of course, it would be more efficient, if you used some kind of whitelist, using Sharepoint Lists, or dataverse, so that instead of creating a big IF, you can just point to the users in the Sharepoint List or Dataverse Table

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
Kalathiya Profile Picture

Kalathiya 428

#2
WarrenBelz Profile Picture

WarrenBelz 374 Most Valuable Professional

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 333 Super User 2025 Season 2

Last 30 days Overall leaderboard