Question 190
An AL extension team encounters the following situation: A salesperson can post orders using a broad SUPER-like role simply to run one custom codeunit. Which technical principle best explains the relevant risk or failure?
Explanation
Correct Answer
This is the controlling principle in the reported case. Overprivileged roles expand access far beyond a single business function. The intended remedy is define least-privilege execute and data permissions needed by the operation.
Incorrect Answers
This option serves the scenario “An extension introduces a new setup table but the deployment team forgets to include it in user permission assignments”. New AL objects can require explicit permissions even when the UI is otherwise correctly installed. The present scenario is distinguished by “Overprivileged roles expand access far beyond a single business function”.
The option would apply to “A service user has a permission set but a new data entity remains inaccessible after publishing a companion app”. A syntactically valid permission set can still fail to cover a newly introduced data object. This question instead requires “Overprivileged roles expand access far beyond a single business function”.
The related but distinct situation is “A publisher wants to ship permissions as source-controlled AL objects instead of undocumented manual tenant changes”. Declarative permissions make authorization easier to review and version with code. For the stated problem, “Overprivileged roles expand access far beyond a single business function” addresses the central condition.