---
id: change/bcapps/12256
type: change
title: "#12256 [Payables Agent] Exclude agent accounts from eligible users"
summary: Automatic user selection in Payables Agent Setup now skips users with the Agent license type. Before this, saving the setup or activating the agent could fail when an agent account had created a posted purchase invoice in the last 30 days, because the platform rejects an agent configuring another agent.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - codeunit payables agent setup
system: development
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:02:29.034Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: a161cd6bf795c9a5631ff2993f51622f04338eb3
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/12256
    title: "microsoft/BCApps#12256: [Payables Agent] Exclude agent accounts from eligible users"
    date: "2026-10-05"
    commit: a161cd6bf795c9a5631ff2993f51622f04338eb3
    t: null
    quote: null
links:
  learn: []
  objects:
    - object/codeunit/3307
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 12256
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/12256
kind: pr
base_branch: main
major: "30"
merged_at: "2026-10-05T15:55:43Z"
author: ventselartur
author_type: User
community_contribution: false
labels:
  - "AL: Apps (W1)"
  - "Team: Finance"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 1
  additions: 4
  deletions: 3
  al: 1
apps:
  - PayablesAgent
objects_touched:
  - key: codeunit/3307
    page: codeunit/3307
    type: codeunit
    id: 3307
    name: Payables Agent Setup
    app: PayablesAgent
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 652693
systems:
  - development
quote: null
joined_against:
  major: "30"
  commit: ecbc028c25dbe83b61313bc566e6c1d41184bb1c
---

# #12256 [Payables Agent] Exclude agent accounts from eligible users

> Automatic user selection in Payables Agent Setup now skips users with the Agent license type. Before this, saving the setup or activating the agent could fail when an agent account had created a posted purchase invoice in the last 30 days, because the platform rejects an agent configuring another agent.

[Pull request](https://github.com/microsoft/BCApps/pull/12256) · merged into `main` (BC30) on 2026-10-05 by ventselartur · 1 file (+4 -3), 1 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Agent license type users are filtered out from automatic user selection
- Preserves existing non-agent user eligibility criteria
- Maintains 30-day invoice creation window for non-agent users
- Prevents platform rejection of access-control entries
- Updated procedure documentation to reflect non-agent restriction
- Behaviour changes for users or extensions.

## AL objects touched

- [Codeunit 3307 "Payables Agent Setup"](../../objects/codeunit/3307.md), PayablesAgent: modified

## Context

- Work items: AB#652693
- Labels: AL: Apps (W1), Team: Finance
- Systems: development

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).
