---
id: object/codeunit/9822
type: object
title: Codeunit 9822 "Plan Configuration Impl."
summary: Codeunit 9822 "Plan Configuration Impl." in System Application (System.Azure.Identity). 23 public procedures, 7 event subscribers. Introduced in BC26, still in BC30.
tier: official
language: en
tags:
  - codeunit
  - system application
versions:
  introduced: "26"
  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: 987745c98224ae87a1b98725e7c6d58a079aa3c42d5e3a2470c358a72eae633e
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/System%20Application/App/Azure%20AD%20Plan/src/Plan%20Configuration/PlanConfigurationImpl.Codeunit.al
    title: src/System Application/App/Azure AD Plan/src/Plan Configuration/PlanConfigurationImpl.Codeunit.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
object_type: codeunit
object_id: 9822
name: Plan Configuration Impl.
namespace: System.Azure.Identity
app: System Application
extends: null
first_version: "26"
last_version: "30"
present_in:
  - "26"
  - "27"
  - "28"
  - "29"
  - "30"
changed_in: []
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 35
  events: 0
  subscribers: 7
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 5
  called_by: 7
  implements: 0
---

# Codeunit 9822 "Plan Configuration Impl."

> Codeunit 9822 "Plan Configuration Impl." in System Application (System.Azure.Identity). 23 public procedures, 7 event subscribers. Introduced in BC26, still in BC30.

System Application · System.Azure.Identity · BC26-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/System%20Application/App/Azure%20AD%20Plan/src/Plan%20Configuration/PlanConfigurationImpl.Codeunit.al) · facts from BC29

## Properties

| Property | Value |
|---|---|
| Access | Internal |
| Permissions | tabledata "Plan Configuration" = rimd, tabledata "Custom Permission Set In Plan" = rimd, tabledata "Default Permission Set In Plan" = rimd |

## Event subscriptions

- OnAfterConfigaritonCustomize subscribes to Page "Plan Configuration Card" OnAfterValidateEvent (Customized)
- DeleteCustomPermissionSet subscribes to Table "Plan Configuration" OnAfterDeleteEvent
- LogFeatureTelemetryPlanConfigurationCard subscribes to Page "Plan Configuration Card" OnOpenPageEvent
- LogFeatureTelemetryPlanConfigurationList subscribes to Page "Plan Configuration List" OnOpenPageEvent
- LogTelemeteryOnDeleteCustomPermissioSet subscribes to Table "Custom Permission Set In Plan" OnAfterDeleteEvent
- LogTelemeteryOnInsertCustomPermissioSet subscribes to Table "Custom Permission Set In Plan" OnAfterInsertEvent
- LogTelemeteryOnModifyCustomPermissioSet subscribes to Table "Custom Permission Set In Plan" OnAfterModifyEvent

## Procedures

- `IsCustomized(PlanId: Guid): Boolean`
- `AddCustomPermissionSetToPlan(PlanId: Guid; RoleId: Code[20]; AppId: Guid; Scope: Option; Company: Text[30])`
- `RemoveCustomPermissionSetFromPlan(PlanId: Guid; RoleId: Code[20]; AppId: Guid; Scope: Option; Company: Text)`
- `AssignCustomPermissionsToUser(PlanId: Guid; UserSecurityId: Guid)`
- `RemoveCustomPermissionsFromUser(PlanId: Guid; UserSecurityId: Guid)`
- `GetCustomPermissions(var PermissionSetInPlanBuffer: Record "Permission Set In Plan Buffer")`
- `AddDefaultPermissionSetToPlan(PlanId: Guid; RoleId: Code[20]; AppId: Guid; Scope: Option)`
- `RemoveDefaultPermissionSetFromPlan(PlanId: Guid; RoleId: Code[20]; AppId: Guid; Scope: Option)`
- `AssignDefaultPermissionsToUser(PlanId: Guid; UserSecurityId: Guid; Company: Text[30])`
- `RemoveDefaultPermissionsFromUser(PlanId: Guid; UserSecurityId: Guid)`
- `GetDefaultPermissions(var PermissionSetInPlanBuffer: Record "Permission Set In Plan Buffer")`
- `VerifyUserHasRequiredPermissionSet(RoleId: Code[20]; AppId: Guid; Scope: Option; Company: Text)`
- `ConfigurationContainsSuper(PlanId: Guid): Boolean`
- `AddLicenseEntry()`
- `TransferPermissions(PlanId: Guid)` (internal)
- `ShowCustomPermissionsEffectNotification(PlanConfiguration: Record "Plan Configuration")` (internal)
- `ShowDefaultConfigurationNotification()` (internal)
- `OpenDocumentation(Notification: Notification)` (internal)
- `LookupPermissionSet(AllowMultiselect: Boolean; var CustomPermissionSetInPlan: Record "Custom Permission Set In Plan"; var PermissionSetLookupRecord: Record "Aggregate Permission Set"): Boolean`
- `OpenBCAdminCenter()` (internal)
- `OpenM365AdminCenter()` (internal)
- `RestoreDefaultConfiguration(PlanConfiguration: Record "Plan Configuration")`
- `CreateDefaultPlanConfigurations()`

Plus 5 local procedures.

## 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 8703 "Feature Telemetry"](../codeunit/8703.md) (8 calls: `AssignCustomPermissionsToUser → LogUptake`, `AssignCustomPermissionsToUser → LogUsage`, `LogFeatureTelemetryPlanConfigurationCard → LogUptake`, …)
- [Codeunit 152 "User Permissions"](../codeunit/152.md) (1 call: `VerifyUserHasRequiredPermissionSet → HasUserPermissionSetAssigned`)
- [Codeunit 433 "Azure AD Tenant"](../codeunit/433.md) (1 call: `BCAdminCenterUrl → GetAadTenantId`)
- [Codeunit 457 "Environment Information"](../codeunit/457.md) (1 call: `BCAdminCenterUrl → IsSaaS`)
- [Codeunit 9855 "Permission Set Relation"](../codeunit/9855.md) (1 call: `LookupPermissionSet → LookupPermissionSet`)

## Called by

- [Codeunit 9825 "Plan Configuration"](../codeunit/9825.md) (12 calls: `AddCustomPermissionSetToPlan → AddCustomPermissionSetToPlan`, `AddDefaultPermissionSetToPlan → AddDefaultPermissionSetToPlan`, `AssignCustomPermissionsToUser → AssignCustomPermissionsToUser`, …)
- [Codeunit 9018 "Azure AD Plan Impl."](../codeunit/9018.md) (4 calls: `AddNewlyAssignedUserPlans → ConfigurationContainsSuper`, `AddNewlyAssignedUserPlans → IsCustomized`, `AssignPlanToUserWithDelegatedRole → ConfigurationContainsSuper`, …)
- [Codeunit 9087 "Microsoft 365 License Impl."](../codeunit/9087.md) (4 calls: `OpenBCAdminCenter → OpenBCAdminCenter`, `OpenM365AdminCenter → OpenM365AdminCenter`, `TransferDefaultPermissions → ShowCustomPermissionsEffectNotification`, …)
- [Codeunit 9056 "Plan Installer"](../codeunit/9056.md) (1 call: `OnInstallAppPerDatabase → CreateDefaultPlanConfigurations`)
- [Codeunit 9057 "Plan Upgrade"](../codeunit/9057.md) (1 call: `AddDefaultPlanConfigurations → CreateDefaultPlanConfigurations`)
- [Page 9061 "Plan Configuration List"](../page/9061.md) (1 call: `OnOpenPage → ShowDefaultConfigurationNotification`)
- [Page 9069 "Plan Configuration Card"](../page/9069.md) (1 call: `OnAfterGetCurrRecord → ShowCustomPermissionsEffectNotification`)

## Across versions

- Present in: BC26-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: "codeunit", object_name: "Plan Configuration Impl.")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
