---
id: object/page/4340
type: object
title: Page 4340 "Select Agent Permissions Part"
summary: Page 4340 "Select Agent Permissions Part" in System Application (System.Agents). 2 public procedures. Introduced in BC27, still in BC30.
tier: official
language: en
tags:
  - page
  - system application
versions:
  introduced: "27"
  last_changed: null
  deprecated: null
review:
  state: derived
  by: null
  at: null
  flags: []
generated:
  at: "2026-10-11T00:31:51.816Z"
  pipeline: 0.2.0
  prompts: {}
  input_hash: 5b265b49ae0a40cc3cce42886311e4b8dbf8c89469c75cc417d7d6c1891d4061
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/System%20Application/App/Agent/Setup/AccessControls/SelectAgentPermissionsPart.Page.al
    title: src/System Application/App/Agent/Setup/AccessControls/SelectAgentPermissionsPart.Page.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
object_type: page
object_id: 4340
name: Select Agent Permissions Part
caption: Agent permissions
namespace: System.Agents
app: System Application
extends: null
first_version: "27"
last_version: "30"
present_in:
  - "27"
  - "28"
  - "29"
  - "30"
changed_in: []
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 4
  events: 0
  subscribers: 0
  controls: 5
  actions: 1
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 1
  event_subscribers: 0
  calls: 1
  called_by: 0
  implements: 0
---

# Page 4340 "Select Agent Permissions Part"

> Page 4340 "Select Agent Permissions Part" in System Application (System.Agents). 2 public procedures. Introduced in BC27, still in BC30.

System Application · System.Agents · captioned "Agent permissions" · BC27-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/System%20Application/App/Agent/Setup/AccessControls/SelectAgentPermissionsPart.Page.al) · facts from BC29

## Properties

| Property | Value |
|---|---|
| Caption | Agent permissions |
| SourceTable | Access Control Buffer |
| PageType | ListPart |
| ApplicationArea | All |

## Fields on this page

Layout controls in source order, grouped by the container they sit in. Shows: the table field a control is bound to (or its expression as written); ToolTip: the control's own, else the bound field's (marked).

| Group | Control | Shows | ToolTip |
|---|---|---|---|
| Agent permissions | Permission Set | `Rec."Role ID"` | Specifies the ID of a security role that has been assigned to this Windows login in the current database. |
|  | Description | `PermissionRoleName` | Specifies the name of the security role that has been given to this Windows login in the current database. |
|  | Company | `Rec."Company Name"` | Specifies the name of the company that this role is limited to for this Windows login. |
|  | Extension Name | `PermissionAppName` | Specifies the name of the extension. |
|  | Permission Scope | `PermissionScope` | Specifies the scope of the permission set. |

## Actions

| Group | Action | ToolTip | Runs |
|---|---|---|---|
| Processing | Show/hide company | Show or hide the company name. |  |

## Procedures

- `Initialize(NewAgentUserSecurityID: Guid; var TempAccessControlBuffer: Record "Access Control Buffer" temporary)` (internal)
- `GetAccessControlForSingleCompany(var SingleCompanyName: Text[30]): Boolean` (protected)

Plus 2 local procedures.

## Triggers

OnOpenPage, OnAfterGetRecord, OnNewRecord, OnInsertRecord

## Extended by

- [Page extension 4350 "Custom Agent Acc Control"](../pageextension/4350.md)

## Calls

From the extracted call graph of BC29 (graphify-al on the snapshot checkout): calls whose target is known from a declared type or an `Object::"Name"` argument. Interface dispatch and calls through events are not counted, so the list is not complete.

- [Codeunit 4301 "Agent Impl."](../codeunit/4301.md) (1 call: `GetAccessControlForSingleCompany → GetAccessControlForSingleCompany`)

## Across versions

- Present in: BC27-30
- Changed (declaration) in: none

Source: AL metadata extracted from the code (names, ids, signatures, properties); no code bodies (D10).

## Ask your agent

Procedure bodies are not stored here (D10). The call sections above are our own, per object, from the BC29 call graph. For a procedure body or the calls of one procedure, ask bc-code-atlas (external, by Stefan Maron, MIT; default corpus w1-28), which the bc-observatory plugin connects: `bcatlas_resolve_node(object_type: "page", object_name: "Select Agent Permissions Part")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
