Diagnose effective access failures

Completed

Permission composition gives you a design, but effective access is the result of several runtime layers. You now trace a denied operation from identity and company access through AL execution so that the correction stays at the narrowest controlling layer.

Trace the authorization chain

Start with the earliest layer that can deny the request. Changing a later permission set doesn't help when a license, entitlement, or company assignment blocks the user before the requested object is evaluated.

Use this order:

  1. Confirm authentication, the assigned Business Central license and entitlement, and access to the target company.
  2. Confirm direct user assignments and security-group assignments, including company scope.
  3. Expand included permission sets and permission set extensions to inspect the composed role.
  4. Identify the required object execute permission and table-data operation.
  5. Determine whether the operation requires direct or indirect access and which related code path supports indirect access.
  6. Inspect an object's Permissions property or a method's InherentPermissions attribute for the exact execution scope.
  7. Verify extension dependencies, app versions, and object ownership.

Direct uppercase permissions such as RIMDX override indirect lowercase permissions such as rimdx in a composed result. An indirect table-data permission succeeds only through a related object or code path that has the necessary permission. It doesn't authorize the user to open arbitrary data or perform the same operation from unrelated code.

When inherent permissions are involved, verify both gates. The caller needs normal access to execute the page or codeunit. The attributed method then receives only its declared same-extension permission while it runs. A successful bounded operation doesn't prove that the user has direct data access, and a denied call doesn't prove that the method attribute is wrong.

Gather effective-permission evidence

Business Central provides several views that answer different questions:

View Use it to determine
Effective Permissions The combined object permissions for a user, including assignment sources and company context.
Effective Permissions By Set Which permission set contributes a specific permission to the effective result.
Permissions Overview How permission sets grant access across objects and operations.
View all permissions or Expanded Permissions The permissions produced by included sets and other composition instead of only the top-level set.

Open the relevant user on Users, verify the permission set and company assignment, and then inspect Effective Permissions for the denied object. Follow the permission back to Effective Permissions By Set when multiple roles or a security group might contribute it. On the permission set, use View all permissions or Expanded Permissions to expose included and extended permissions. Use Permissions Overview when you need to compare several sets against the same object.

Security filters can restrict the records visible through an otherwise sufficient object permission. If the user can open an object but receives a filtered result or a record-specific denial, inspect the applicable security filter and company context. Don't compensate with a broader object permission before you confirm whether the filter expresses the intended data boundary.

Record the evidence with the failing user, company, object type and ID, required operation, assignment source, direct or indirect result, and extension version. This record separates observed facts from a proposed correction.

Correlate failures with RT0031 telemetry

Permission-error telemetry event RT0031 provides runtime evidence when the UI alone doesn't reveal the denied operation. Relevant dimensions include permissionArea, permissionType, object type, object ID, object name, extension metadata, user telemetry ID, client type, company, error, and the AL stack trace.

Use the telemetry user ID rather than recording personal credentials. Match the event time and company to the reproduction, then follow the AL stack trace to the first extension-owned frame that requests the denied operation. Extension metadata helps distinguish an outdated dependency from the app version that you expect to test.

Telemetry complements effective-permission pages:

  • Effective-permission evidence shows what the identity receives and which set contributes it.
  • RT0031 shows what the failing runtime path requests and where the denial occurs.
  • The extension manifest and dependency versions show whether the running object contract matches the source under review.

If Effective Permissions shows page execution but RT0031 reports codeunit execution, add or compose the missing codeunit permission instead of widening table access. If telemetry reports table-data insert outside an attributed method, route the operation through the intended bounded service or grant direct insert only when the user's role truly requires arbitrary insertion.

Correct the controlling layer

Choose the smallest correction that aligns the authorization chain with the intended role. Common corrections include assigning the intended role in the correct company, adding one app-owned object to a reusable permission set, exposing service execution through a deliberate additive extension, correcting an extension dependency, or narrowing a security filter.

Don't use SUPER as a diagnostic endpoint or a production fix. SUPER can make the symptom disappear while hiding the missing object, assignment source, or dependency. It also prevents a representative test of least privilege.

After each correction, sign in as a representative nonadministrator and repeat the exact operation. Confirm both sides of the boundary: the intended path succeeds, and an unrelated or direct path remains denied. Preserve the effective-permission view and matching RT0031 details as evidence. This method turns an access-denied message into a specific, reviewable authorization decision.

For more information, see Analyzing permission error trace telemetry, Monitoring and analyzing telemetry, and Define granular permissions.