Skip to main content

Notifications

Announcements

No record found.

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

How can I control "Read or Write" permission of specific column on a Page?

(3) ShareShare
ReportReport
Posted on by 265
Hi experts!

I would like to control  "Read or Write" permission of specific column on a Page? 
For example, a Manager can Write "Bank Account No", below, but a Group Leader can not do that.
If it's possible, how can I do that?  Can I check some kind of roll table?

Look forward to hiring from you.
Best,
Nobuhara
 
  • Suggested answer
    Valentin Castravet Profile Picture
    Valentin Castravet 25,453 Super User 2024 Season 2 on at
    How can I control "Read or Write" permission of specific column on a Page?
    Out of the box permissions can't be used to restrict read or write on specific fields. As Yun Zhu mentioned it would have to be done using customization. However, one option is to control this using a common profile users are using. More info here - Mark fields as read-only when customizing UI | Microsoft Learn
     
  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 76,297 Super User 2024 Season 2 on at
    How can I control "Read or Write" permission of specific column on a Page?
    Since the standard does not have field-level permission control, there is currently no solution except customization.
    If you don't need a complete solution, you can consider using the following function to hide the fields according to their roles.
     
    Thanks
    ZHU
  • Suggested answer
    Satish Srivastava Profile Picture
    Satish Srivastava 110 on at
    How can I control "Read or Write" permission of specific column on a Page?
    Hi,
     
    In Microsoft Dynamics 365 Business Central, you can control "Read" or "Write" permissions for a specific column (field) on a Page using:
     * Field-Level Editable Permissions in AL Code
     * Permissions & Security Filters (For Read-Only Restrictions)
     * Record-Level Security via Event Subscribers
    pageextension 50100 "ExployeeCardExt" extends "Employee Card"
    {
        layout
        {
            Modify("Bank Account No.")
            {
                    Editable = CanEditItemBankaccount(); // Dynamic control
            }
        }
        local procedure CanEditItemBankaccount(): Boolean
        var
            UserSetup: Record "User Setup";
        begin
            // Check if the user has permission
            if UserSetup.Get(UserId) then
                exit(UserSetup."Can Edit Item Reference No.")
            else
                exit(false); // Default to read-only
        end;
    }
    Steps to Restrict Read Access using Permissions Set

    Go to Business Central Admin Center → Permissions (Page 9802).
    Find or create a Custom Permission Set.
    Locate the Table where the field exists (e.g., Employee).
    Apply a Security Filter:
    Use Security Filters to allow only certain values based on user roles.

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Share Your Event with the Community

Jump start your event engagement! 📢

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,925 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,646 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans