code change · refactorCopilot & Agentsofficial - Microsoftreviewed - checked by Opus

#11997 Clarify Expense Agent Entra app permission checks

Permission checks for the Expense Agent Entra app have been reordered to match the setup flow and documented to clarify why non-SUPER users need additional permissions beyond Expense Mgmt. Admin.

Pull request · merged into main (BC30) on 2026-10-22 by encimita · 1 file (+13 -11), 1 AL · refactor · tier official · reviewed (checked by Opus)

What changed

  • Reordered authorization checks to follow the setup flow sequence
  • Added documentation explaining why non-SUPER users require SECURITY, Expense Agent, and Agent - Admin permissions
  • Preserved existing SUPER user bypass behavior
  • Authorization rule remains: SUPER or (Expense Mgmt. Admin and SECURITY and Expense Agent and Agent - Admin and Configure All Agents)
  • No changes to actual permission model or runtime behavior

AL objects touched

Context

  • Work items: AB#649970
  • Labels: AL: Apps (W1), Team: Finance
  • Systems: copilot
  • From the description: “Reorder the Expense Agent Entra application authorization checks to follow the setup flow.”

No source states these links: they share an object, a model read them, or a person found the same subject.

Source: metadata of a merged pull request in microsoft/BCApps (bcapps): title, labels, changed paths and counts, with a summary in our words. No source text and no description beyond one short quote (D10, D61).