Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested answer

Is there a way make a field editable only for one user and not for others?

(1) ShareShare
ReportReport
Posted on by 160
Hello
There is one field that should be non-editable for all user except one person, basically the admin.
To make a field non-editable we make use of -- Editable=false
can we write code on editable like as follows to make it change it behavior based on the logged in user?
editable= If(LoggedInUser = Admin)
                   then true
                   else false
 
Or is there a better way to achieve same functionality.
 
Your help will be very much appreciated.
Thank you.
 
  • Suggested answer
    YUN ZHU Profile Picture
    84,467 Super User 2025 Season 1 on at
    Is there a way make a field editable only for one user and not for others?
    Hi, just use a variable to control the Editable property of this field.
    More details:
     
    PS: Deprecating InDataSet attribute used for global variables in Pages (The InDataset attribute is unused)
     
    Hope this helps.
    Thanks.
    ZHU
  • Gerardo Rentería García Profile Picture
    19,829 Most Valuable Professional on at

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

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 1,452

#2
YUN ZHU Profile Picture

YUN ZHU 1,313 Super User 2025 Season 1

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 1,083 Most Valuable Professional

Featured topics

Product updates

Dynamics 365 release plans