Ability to elevate permissions in AL code
Important
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 |
Business value
AL developers can now elevate specific permissions in the critical code paths, such as company initialization or the sign-in process.
Feature details
We're introducing a new attribute for procedures, InherentPermissions
, which is available for on-premises deployments only in this release.
Example:
[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.