---
id: object/codeunit/9825
type: object
title: Codeunit 9825 "Plan Configuration"
summary: Codeunit 9825 "Plan Configuration" in System Application (System.Azure.Identity). 12 public procedures. Present since at least BC23, still in BC30, changed in BC26.
tier: official
language: en
tags:
  - codeunit
  - system application
versions:
  introduced: null
  last_changed: "26"
  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: 5165c2762cfa5ead1b6644743bdbba6aea67e004d1f8a1677568f8671e5bb370
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/System%20Application/App/Azure%20AD%20Plan/src/Plan%20Configuration/PlanConfiguration.Codeunit.al
    title: src/System Application/App/Azure AD Plan/src/Plan Configuration/PlanConfiguration.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: 9825
name: Plan Configuration
namespace: System.Azure.Identity
app: System Application
extends: null
first_version: "23"
last_version: "30"
present_in:
  - "23"
  - "24"
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
  - "30"
changed_in:
  - "26"
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 12
  events: 0
  subscribers: 0
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 1
  called_by: 10
  implements: 0
---

# Codeunit 9825 "Plan Configuration"

> Codeunit 9825 "Plan Configuration" in System Application (System.Azure.Identity). 12 public procedures. Present since at least BC23, still in BC30, changed in BC26.

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

## Properties

| Property | Value |
|---|---|
| Access | Public |

## Procedures

- `IsCustomized(PlanId: Guid): Boolean`: Checks if a plan configuration was customized.
- `AddCustomPermissionSetToPlan(PlanId: Guid; RoleId: Code[20]; AppId: Guid; Scope: Option; Company: Text[30])`: Adds a permission set to a plan.
- `RemoveCustomPermissionSetFromPlan(PlanId: Guid; RoleId: Code[20]; AppId: Guid; Scope: Option; Company: Text)`: Removes a permissions set from a plan.
- `AssignCustomPermissionsToUser(PlanId: Guid; UserSecurityId: Guid)`: Assigns all custom permission sets for a plan to a user.
- `RemoveCustomPermissionsFromUser(PlanId: Guid; UserSecurityId: Guid)`: Removes custom permission sets for a plan from a user. If the permission set is also associated with another plan, it is not deleted.
- `GetCustomPermissions(var PermissionSetInPlanBuffer: Record "Permission Set In Plan Buffer")`: Gets the list of all custom permission sets for a plan.
- `AddDefaultPermissionSetToPlan(PlanId: Guid; RoleId: Code[20]; AppId: Guid; Scope: Option)`: Adds a permission set to a plan.
- `RemoveDefaultPermissionSetFromPlan(PlanId: Guid; RoleId: Code[20]; AppId: Guid; Scope: Option)`: Removes a permissions set from a plan.
- `AssignDefaultPermissionsToUser(PlanId: Guid; UserSecurityId: Guid; Company: Text[30])`: Assigns all default permission sets for a plan to a user.
- `RemoveDefaultPermissionsFromUser(PlanId: Guid; UserSecurityId: Guid)`: Removes default permission sets for a plan from a user. If the permission set is also associated with another plan, it is not deleted.
- `GetDefaultPermissions(var PermissionSetInPlanBuffer: Record "Permission Set In Plan Buffer")`: Gets the list of all default permission sets for a plan.
- `VerifyUserHasRequiredPermissionSet(RoleId: Code[20]; AppId: Guid; Scope: Option; Company: Text)`: Checks whether the current user has enough permissions to assign or de-assign a permission set from plan.

## 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 9822 "Plan Configuration Impl."](../codeunit/9822.md) (12 calls: `AddCustomPermissionSetToPlan → AddCustomPermissionSetToPlan`, `AddDefaultPermissionSetToPlan → AddDefaultPermissionSetToPlan`, `AssignCustomPermissionsToUser → AssignCustomPermissionsToUser`, …)

## Called by

- [Table 9018 "Custom Permission Set In Plan"](../table/9018.md) (4 calls: `OnDelete → VerifyUserHasRequiredPermissionSet`, `OnInsert → VerifyUserHasRequiredPermissionSet`, `OnModify → VerifyUserHasRequiredPermissionSet`, …)
- [Codeunit 9017 "Azure AD User Mgmt. Impl."](../codeunit/9017.md) (3 calls: `ArePermissionsCustomized → GetCustomPermissions`, `ArePermissionsCustomized → GetDefaultPermissions`, `ArePermissionsCustomized → IsCustomized`)
- [Codeunit 9018 "Azure AD Plan Impl."](../codeunit/9018.md) (3 calls: `RemoveUnassignedUserPlans → IsCustomized`, `RemoveUnassignedUserPlans → RemoveCustomPermissionsFromUser`, `RemoveUnassignedUserPlans → RemoveDefaultPermissionsFromUser`)
- [Codeunit 9873 "BaseApp Security Group Impl."](../codeunit/9873.md) (2 calls: `SendLicenseConfigurationNotificationOnFirstRecord → GetCustomPermissions`, `SendLicenseConfigurationNotificationOnFirstRecord → GetDefaultPermissions`)
- [Codeunit 104030 "Upgrade Plan Permissions"](../codeunit/104030.md) (1 call: `AddPermissionSetToPlan → AddDefaultPermissionSetToPlan`)
- [Codeunit 104061 "Upgrade User Groups"](../codeunit/104061.md) (1 call: `TransferDefaultPermissionsPerPlan → AddDefaultPermissionSetToPlan`)
- [Codeunit 5684 "Create Contoso Permissions"](../codeunit/5684.md) (1 call: `AddPermissionSet → AddDefaultPermissionSetToPlan`)
- [Codeunit 9032 "Upgrade Custom User Groups"](../codeunit/9032.md) (1 call: `TransferCustomPermissionsPerPlan → AddCustomPermissionSetToPlan`)
- [Codeunit 9087 "Microsoft 365 License Impl."](../codeunit/9087.md) (1 call: `AssignMicrosoft365ReadPermission → AddCustomPermissionSetToPlan`)
- [Page 1978 "MS 365 License Setup Wizard"](../page/1978.md) (1 call: `HasLicenseConfiguration → GetCustomPermissions`)

## Across versions

- Present in: BC23-30
- Changed (declaration) in: BC26

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")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
