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 / Is Possible to hide fo...
Power Apps
Unanswered

Is Possible to hide form controls based on the user permission in Model Driven apps

(0) ShareShare
ReportReport
Posted on by

I am trying to hide some controls in my form based on the user permission, How we can achieve it kindly provide solution. Thanks in Advance!!

Categories:
I have the same question (0)
  • K-A-R-L Profile Picture
    715 on at

    Hi @Anonymous ,

    What permission do you want to use? Do you have a list of users that you want to hide the controls from?

    Add an O365 Connector:

     

    You can try adding this to your AppStart:

    Set(MyProfile,Office365Users.MyProfile()); 
    ClearCollect(AllowedUsers,"hari@example.com"); //Collects Allowed Users

    Unlock the Control that you want to hide and change this Visible Property to:

    If(MyProfile.Mail in AllowedUsers.Value,true,false);

    ----------------------------------------------------------------------------
    Thanks,
    K-A-R-L


    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
    If you thought this post was helpful, please give it a Thumbs Up.

  • Community Power Platform Member Profile Picture
    on at

    @K-A-R-L  thanks for your response.. I think it will not work for model driven apps. I have users like readonly user, Owner, etc.. so for readonly user i need to hide some fields in my model driven form. How I can achieve it.. 

  • K-A-R-L Profile Picture
    715 on at

    Hi @Anonymous ,

    Apologies, I didn't see that the tags are for CDS Model Driven Apps.

    Can you please try to check your filter criteria?  Within filter criteria, select new filter> Related> Account. You then get the the option to add a related field (In this case your User) to the filter. 

    I'm not sure about permissions though. 

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 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard