Create role-focused profiles
A profile is the extension-owned definition of a role in the Business Central client. It connects users to a Role Center and can apply page customizations that make common work easier to find.
Define a profile in AL
A profile object has a name but no numeric object ID. The RoleCenter property identifies the home page for the role, and Customizations lists the page customization objects that apply to it.
profile "Customer Follow-up"
{
Caption = 'Customer Follow-up';
Description = 'Role for users who monitor active customer accounts.';
ProfileDescription = 'Review active customers and complete follow-up setup.';
RoleCenter = "Business Manager Role Center";
Customizations = "Cust Follow-up Customization";
Enabled = true;
Promoted = true;
}
Use the profile properties intentionally:
Captionis the role name that users see.Descriptionis an internal description for developers and administrators.ProfileDescriptionexplains who should use the role and why.Enabledcontrols whether the profile is available.Promotedmakes the profile available in Role Explorer.
The compiler verifies that the referenced Role Center and page customizations exist. A profile can reuse a standard Role Center when its navigation already supports the role. Create a new Role Center only when the role needs a substantially different home-page structure.
Separate role design from access and personalization
Profiles, permissions, page customizations, and personalizations solve different problems.
| Mechanism | Owner | Purpose |
|---|---|---|
| Profile | Extension | Associates a role with a Role Center and page customizations. |
| Permission set | Administrator or extension | Grants access to objects and data. |
| Page customization | Extension | Changes a page for every user assigned to a profile. |
| Personalization | Individual user | Changes the user's own page experience. |
A profile doesn't grant access to the pages that it exposes. Pair the role design with appropriate permission sets, and test with a user who has the intended permissions. User personalization can build on shared-layout views, but it shouldn't be required to make an extension-owned role usable.
Plan maintainable profile scope
Start with the job that the role performs, not with every page that could be changed. Identify the Role Center, the few pages that need role-specific treatment, and the actions or views that reduce repeated navigation. Keep captions and descriptions stable because administrators use them when assigning roles.
Page customizations are profile-scoped and can't contain variables, procedures, or triggers. Use them for declarative layout, action, and view changes. Use a page extension when behavior or AL code is required and the change should apply independently of a profile.
For more information, see Designing profiles.