Custom fields are an essential feature for tailoring data structures to meet specific business requirements. However, with added flexibility comes the critical responsibility of access control. User scope and read-only scope are key mechanisms that allow organizations to precisely define who can see or modify these fields—ensuring both data privacy and integrity.

Why It Matters
When sensitive or operationally critical information is embedded in custom fields, it’s not enough to simply create them—you must govern how they are used. Without strict controls, you risk exposing confidential data or allowing unauthorized changes that compromise business processes.
Scenario: Custom Fields in a Sales Order
To illustrate this, consider a system where two custom fields were added to a sales order:
manager infomanager personal
These fields were subject to different visibility and editability rules, based on the user’s role and permissions.
Defining User Scope: Who Sees What?
User scope determines which users can view a given custom field.
manager infofield:
This was set to be visible to “all selected” users—effectively allowing a broader group to access it.manager personalfield:
Access was restricted. For example, the “second user” was explicitly excluded from viewing this field. In contrast, users like “test user” and “John Dou” (the admin) retained access.
As a result, only those granted permission through the user scope could view the manager personal field within the sales order interface.
Implementing Read-Only Scope: Controlling Editability
Visibility is only half the equation. Sometimes users need to see a field but not modify it. That’s where read-only scope comes into play.
- In our example, the
manager infofield, while visible to the “second user,” was explicitly set as read-only for them. - This ensured that the user could view the data but not edit it.
User Experience: Enforcing Permissions
When logged in as the “second user,” the permissions took effect as follows:
- Visible but Read-Only:
Themanager infofield was present but locked for editing. - Completely Hidden:
Themanager personalfield was not displayed at all.
This dual control clearly separates visibility (user scope) from editability (read-only scope), creating a robust permission structure.
Application Across Field Types
These principles apply not just to document-level fields like those in a sales order but also to table-level custom fields across your system.
Conclusion
By using user scope and read-only scope, you establish fine-grained access control over your data. This empowers administrators to enforce clear boundaries—who sees what, and who can change what—resulting in improved security, cleaner audit trails, and more trustworthy business processes.
Let me know if you’d like to add screenshots, code snippets, or platform-specific implementation details to support this post.
By utilizing user scope and read-only scope, you gain granular control over data access, ensuring that only authorized users can view or modify information stored in your custom fields, enhancing both security and data integrity.



Recent Comments