topic hubAdministration & Setupofficial - Microsoftunreviewed - model text not yet checked

Permission sets and entitlements overview

Permission sets and entitlements in Business Central AL development: defining permission set and entitlement objects, composing and extending permission sets, setting object permissions, inherent permissions, exporting to XML, upgrading to AL-based permissions, and monitoring permission telemetry. It answers how-to and troubleshooting questions on access control.

Path: Development > Programming in the AL language > Handling security > Permission sets and entitlements overview · tier official · system administration · narrative unreviewed (model text not yet checked)

Overview

This section covers how access is controlled in Business Central from the AL developer’s side. Entitlements give access based on purchased licenses or Microsoft Entra roles. Permissions are assigned by administrators. Permission sets group permissions logically. The “Entitlements and permission sets overview” page explains these terms and is the best starting point.

Next come the building blocks. The Permission set object and the page on composing permission sets cover the Permissions, Assignable, IncludedPermissionSets and ExcludedPermissionSets properties. The Permission Set Extension object adds permissions to existing sets from an extension. The Permissions on Objects page explains direct and indirect permissions and the abbreviations. The Entitlement object page covers entitlements for licensing and Marketplace apps. Inherent Permissions lets specific AL methods run with temporary elevated rights.

Operational pages cover moving and monitoring permissions. These are exporting permission sets to XML, upgrading from legacy data-based permissions to AL object-based permissions, and three telemetry pages. The telemetry pages cover permission changes, permission errors (RT0031) and dependency cycles (RT0032).

Key points

  • Entitlements are license-based access, permissions are assigned by administrators, and permission sets are logical groups of permissions.
  • AL permission sets can be composed with IncludedPermissionSets and ExcludedPermissionSets, with the Assignable property controlling whether they can be assigned.
  • Permission set extension objects add permissions to existing sets and apply automatically on install and removal on uninstall.
  • Permissions on objects use read, insert, modify, delete and execute levels, with direct and indirect permissions and wildcard support.
  • The inherentpermissions attribute grants temporary permissions to specific AL methods or events without changing user permission sets.
  • Entitlement objects (2023 release wave 2) support role-based, per-user plan, unlicensed, Entra group and application scope entitlements, and Marketplace app monetization.
  • Permission sets can be exported to XML from the Permission Sets page or with the VS Code command AL: Generate permission set as XML file.
  • Upgrading from versions before 18.0 means moving legacy data-based permissions to AL object-based permission set and extension objects.

Learn pages

  • (automation API) Get permissionSet: Gets a permission set object in Dynamics 365 Business Central.
  • Analyzing Permission Changes Trace Telemetry: Analyze Business Central permission change telemetry to track permission sets, user assignments, and changes made by extensions during installation or updates.
    • Status: Permission changes telemetry applies to Business Central 2020 release wave 2, version 17.2, and later.
    • Permission telemetry tracks user-defined permission set additions, removals, links to system sets, and assignments to users or groups.
    • Limit: AL permission events are emitted only in Business Central online; LC0058 event emitted during extension installation or updates.
    • Permission set assignment events capture permission set ID, app ID, and scope of the assigned permission set.
    • Permission set link events track links between user-defined and system permission sets with total count of links.
    • In the observatory: Codeunit 1351 “Telemetry Subscribers”
  • Analyzing Permission Dependency Cycle Trace Telemetry: Analyze permission dependency cycle telemetry in Business Central to identify circular permission set references and investigate the dependency path.
    • Permission dependency cycles occur when permission sets reference themselves; system prevents circular references.
    • Dependency cycle event logs the full cycle path showing how sets reference each other; long paths are truncated at middle.
    • Cycle discovery telemetry includes AL object ID and type, stack trace, and cyclic permission set dependency path.
    • Severity level 3 for dependency cycle event indicates an error that blocks permission operations.
  • Analyzing Permission Error Trace Telemetry: Analyze permission error telemetry in Business Central to identify missing permissions, inspect affected objects, and investigate errors reported to users.
    • Permission error telemetry is emitted when users get permission-related error dialogs in Business Central.
    • Permission error events capture object ID and name, permission area (System, Entitlement, Company, Object), and permission type required.
    • Error messages include affected AL object type (page, table, etc.), client type, and AL stack trace for investigation.
    • Permission error dimension permissionArea indicates whether error is related to system, entitlement, company, or specific object.
  • Composing Permission Sets from Other Permission Sets: Compose AL permission sets in Business Central, include or exclude existing permission sets, and understand how direct and indirect permissions combine.
  • Entitlement object: Discover how to define and use entitlement objects in AL for Business Central.
  • Entitlements and permission sets overview: Learn about the different built-in methods to control which users can do what so that you can design the Business Central permission sets more precisely.
  • Export Permission Sets to XML Files: Export Business Central permission sets from the client or generate XML in Visual Studio Code, and understand permission values and object type mappings.
  • Inherent Permissions: Description of how inherent permissions work and the InherentPermissions attribute in AL for Business Central.
  • Permission Set Extension Object: Use AL permission set extension objects in Business Central to add permissions to existing sets and design targeted changes that avoid excess access.
  • Permission set object: Describes the permission set object, which sets permissions on objects in AL for Business Central.
  • Permissions on Objects: This article provides an overview of permissions on objects in Business Central.
  • permissionSet resource type: A permission set object in Dynamics 365 Business Central.
  • Upgrading Permission Sets and Permissions: Describes how to upgrade permissions and permission sets

Key facts from Microsoft Learn (CC BY 4.0), in our own words (D106); open the page for the full text.

Videos, posts and code changes

Linked by a Haiku matcher with a grounding quote from the item’s summary (link/topics.ts); machine-generated.

Source: Microsoft Learn (CC BY 4.0). Descriptions are Learn’s own.

What Learn documents here 8 of 14 Learn pages

Show 6 more