#14527 Don't reuse a Payables Agent user that has no permissions in the company
Payables Agent setup now verifies that a reused agent user has permissions in the current company before attempting to reuse it, preventing task failures when a company is deleted and recreated with the same name.
- 1files
- 1AL files
- 1objects
Pull request · merged into main (BC30) on 2026-11-26 by Explorer986 · 1 file (+18 -1), 1 AL · fix · tier official · reviewed (checked by Opus)
What changed
- Agent user lookup by name now includes a permissions check for the current company
- If an agent user lacks permissions in the current company, a new agent is created instead of reused
- Uses the same permissions verification the agent framework runs before accepting tasks
- Agents already linked in company setup continue to work as before
- Resolves task failures with ‘agent has no access control permissions’ error after company recreation
- Behaviour changes for users or extensions.
AL objects touched
- Codeunit 3343 “PA Setup”, PayablesAgent: modified
Also merged into
- #14673 into
releases/29.xon 2026-11-30
Context
- Work items: AB#640641
- Labels: AL: Apps (W1), Team: Finance
- Systems: copilot
- From the description: “The setup found it by that name and reused it, but its permissions belonged to the deleted company.”
Possibly related
No source states these links: they share an object, a model read them, or a person found the same subject.
- Agent permissions (preview) — possibly related: Agent permissions configuration to ensure Payables Agent users have proper company access (model-linked)
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).