---
id: object/codeunit/9027
type: object
title: Codeunit 9027 "Plan Ids"
summary: Codeunit 9027 "Plan Ids" in System Application (System.Azure.Identity). 24 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: 055c02981b12b985c0a2277c07ddeb46d26092c32b31844bd2b31198af47b1c5
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/System%20Application/App/Azure%20AD%20Plan/src/PlanIds.Codeunit.al
    title: src/System Application/App/Azure AD Plan/src/PlanIds.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: 9027
name: Plan Ids
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: 24
  events: 0
  subscribers: 0
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 0
  called_by: 19
  implements: 0
---

# Codeunit 9027 "Plan Ids"

> Codeunit 9027 "Plan Ids" in System Application (System.Azure.Identity). 24 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/PlanIds.Codeunit.al) · facts from BC29

## Properties

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

## Procedures

- `GetBasicPlanId(): Guid`: Returns the ID for the Dynamics 365 Business Central Basic Financials plan.
- `GetTeamMemberPlanId(): Guid`: Returns the ID for the Dynamics 365 Business Central Team Member plan.
- `GetMicrosoft365PlanId(): Guid`: Returns the ID for the Microsoft 365 plan.
- `GetEssentialPlanId(): Guid`: Returns the ID for the Dynamics 365 Business Central Essentials plan.
- `GetPremiumPlanId(): Guid`: Returns the ID for the Dynamics 365 Business Central Premium plan.
- `GetViralSignupPlanId(): Guid`: Returns the ID for the Dynamics 365 Business Central for IWs plan.
- `GetExternalAccountantPlanId(): Guid`: Returns the ID for the Dynamics 365 Business Central External Accountant plan.
- `GetDelegatedAdminPlanId(): Guid`: Returns the ID for the Delegated Admin agent - Partner plan.
- `GetDelegatedBCAdminPlanId(): Guid`: Returns the ID for the Delegated BC Admin agent - Partner plan.
- `GetBCAdminPlanId(): Guid`: Returns the ID for the Internal BC Administrator plan.
- `GetD365AdminPartnerPlanId(): Guid`: Returns the ID for the Dynamics 365 Admin - Partner plan.
- `GetD365AdminPlanId(): Guid`: Returns the ID for the Dynamics 365 Administrator plan.
- `GetGlobalAdminPlanId(): Guid`: Returns the ID for the Global Administrator plan.
- `GetTeamMemberISVPlanId(): Guid`: Returns the ID for the D365 Business Central Team Member - Embedded plan.
- `GetEssentialISVPlanId(): Guid`: Returns the ID for the Dynamics 365 Business Central Essential - Embedded plan.
- `GetPremiumISVPlanId(): Guid`: Returns the ID for the Dynamics 365 Business Central Premium - Embedded plan.
- `GetEssentialAttachPlanId(): Guid`: Returns the ID for the Dynamics 365 Business Central Essential - Attach plan.
- `GetDeviceISVPlanId(): Guid`: Returns the ID for the Dynamics 365 Business Central Device - Embedded plan.
- `GetDevicePlanId(): Guid`: Returns the ID for the Dynamics 365 Business Central Device plan.
- `GetBasicFinancialsISVPlanId(): Guid`: Returns the ID for the Dynamics 365 Business Central Basic Financials - Embedded plan.
- `GetAccountantHubPlanId(): Guid`: Returns the ID for the Microsoft Dynamics 365 - Accountant Hub plan.
- `GetHelpDeskPlanId(): Guid`: Returns the ID for the Delegated Helpdesk agent - Partner plan.
- `GetInfrastructurePlanId(): Guid`: Returns the ID for the D365 Business Central Infrastructure plan.
- `GetPremiumPartnerSandboxPlanId(): Guid`: Returns the ID for the D365 Business Central Premium Partner Sandbox plan.

## Called by

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 104030 "Upgrade Plan Permissions"](../codeunit/104030.md) (41 calls: `AddAutomateActionUserGroupToExistingPlans → GetAccountantHubPlanId`, `AddAutomateActionUserGroupToExistingPlans → GetBasicFinancialsISVPlanId`, `AddAutomateActionUserGroupToExistingPlans → GetBasicPlanId`, …)
- [Codeunit 9057 "Plan Upgrade"](../codeunit/9057.md) (24 calls: `AddBCAdmin → GetBCAdminPlanId`, `AddBCAdmin → GetDelegatedBCAdminPlanId`, `AddD365Admin → GetD365AdminPlanId`, …)
- [Codeunit 5684 "Create Contoso Permissions"](../codeunit/5684.md) (23 calls: `OnRun → GetAccountantHubPlanId`, `OnRun → GetBasicPlanId`, `OnRun → GetBCAdminPlanId`, …)
- [Codeunit 9018 "Azure AD Plan Impl."](../codeunit/9018.md) (23 calls: `AssignPlanToUserWithDelegatedRole → GetDelegatedAdminPlanId`, `AssignPlanToUserWithDelegatedRole → GetHelpDeskPlanId`, `GetDevicesPlanInfo → GetDevicePlanId`, …)
- [Codeunit 9056 "Plan Installer"](../codeunit/9056.md) (23 calls: `CreatePlans → GetAccountantHubPlanId`, `CreatePlans → GetBasicFinancialsISVPlanId`, `CreatePlans → GetBCAdminPlanId`, …)
- [Codeunit 9852 "Effective Permissions Mgt."](../codeunit/9852.md) (22 calls: `GetPlanId → GetBasicPlanId`, `GetPlanId → GetD365AdminPlanId`, `GetPlanId → GetDelegatedAdminPlanId`, …)
- [Codeunit 9029 "Azure AD User Sync Impl."](../codeunit/9029.md) (12 calls: `FetchUpdatesForLicensedUsers → GetBCAdminPlanId`, `FetchUpdatesForLicensedUsers → GetD365AdminPlanId`, `FetchUpdatesForLicensedUsers → GetGlobalAdminPlanId`, …)
- [Page 5555 "Permission Conflicts Overview"](../page/5555.md) (11 calls: `CheckPlans → GetBasicPlanId`, `CheckPlans → GetD365AdminPlanId`, `CheckPlans → GetDelegatedAdminPlanId`, …)
- [Codeunit 776 "Plan User Details"](../codeunit/776.md) (5 calls: `AddPlanUserDetails → GetD365AdminPartnerPlanId`, `AddPlanUserDetails → GetDelegatedAdminPlanId`, `AddPlanUserDetails → GetDelegatedBCAdminPlanId`, …)
- [Codeunit 9017 "Azure AD User Mgmt. Impl."](../codeunit/9017.md) (4 calls: `IsUserDelegated → GetD365AdminPartnerPlanId`, `IsUserDelegated → GetDelegatedAdminPlanId`, `IsUserDelegated → GetDelegatedBCAdminPlanId`, …)
- [Codeunit 9178 "Application Area Mgmt."](../codeunit/9178.md) (4 calls: `IsPremiumEnabled → GetPremiumISVPlanId`, `IsPremiumEnabled → GetPremiumPartnerSandboxPlanId`, `IsPremiumEnabled → GetPremiumPlanId`, …)
- [Codeunit 7774 "Copilot Capability Impl"](../codeunit/7774.md) (3 calls: `IsAdmin → GetBCAdminPlanId`, `IsAdmin → GetD365AdminPlanId`, `IsAdmin → GetGlobalAdminPlanId`)
- [Codeunit 1444 "Global Admin Notifier"](../codeunit/1444.md) (2 calls: `IsUserInternalAdminOnly → GetD365AdminPlanId`, `IsUserInternalAdminOnly → GetGlobalAdminPlanId`)
- [Codeunit 9003 "Team Member Action Manager"](../codeunit/9003.md) (2 calls: `IsCurrentUserAssignedTeamMemberPlan → GetTeamMemberISVPlanId`, `IsCurrentUserAssignedTeamMemberPlan → GetTeamMemberPlanId`)
- [Codeunit 9034 "Azure AD User Subscribers"](../codeunit/9034.md) (2 calls: `GetInformation → GetD365AdminPlanId`, `GetInformation → GetGlobalAdminPlanId`)
- [Codeunit 9087 "Microsoft 365 License Impl."](../codeunit/9087.md) (2 calls: `AssignMicrosoft365ReadPermission → GetMicrosoft365PlanId`, `ShowM365LicenseNotification → GetMicrosoft365PlanId`)
- [Page 9807 "User Card"](../page/9807.md) (2 calls: `IsUserDelegated → GetDelegatedAdminPlanId`, `IsUserDelegated → GetHelpDeskPlanId`)
- [Codeunit 4001 "Hybrid Cloud Management"](../codeunit/4001.md) (1 call: `CanGrantPermission → GetBCAdminPlanId`)
- [Page 1978 "MS 365 License Setup Wizard"](../page/1978.md) (1 call: `OnOpenPage → GetMicrosoft365PlanId`)

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