Ability to elevate permissions in AL code
This content is archived and is not being updated. For the latest documentation, go to What's new and planned for Dynamics 365 Business Central. For the latest release plans, go to Dynamics 365 and Microsoft Power Platform release plans.
|Enabled for||Public preview||General availability|
|Users, automatically||Apr 1, 2022||Apr 1, 2022|
AL developers can now elevate specific permissions in the critical code paths, such as company initialization or the sign-in process.
We're introducing a new attribute for procedures,
InherentPermissions, which is available for on-premises deployments only in this release.
[InherentPermissions (PermissionObjectType::Table, Table::"Retention Period", 'ri’)]
Within this method, all users will have at least indirect permission to read and to insert into the specified table.