---
id: object/codeunit/433
type: object
title: Codeunit 433 "Azure AD Tenant"
summary: Codeunit 433 "Azure AD Tenant" in System Application (System.Azure.Identity). 6 public procedures. Present since at least BC23, still in BC30, changed in BC28-29.
tier: official
language: en
tags:
  - codeunit
  - system application
versions:
  introduced: null
  last_changed: "29"
  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: 5359a6e2872823817eba5f7ada159a6487a3acde808464889259a5763aed4d4b
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/System%20Application/App/Azure%20AD%20Tenant/src/AzureADTenant.Codeunit.al
    title: src/System Application/App/Azure AD Tenant/src/AzureADTenant.Codeunit.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes:
    - change/bcapps/8499
object_type: codeunit
object_id: 433
name: Azure AD Tenant
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:
  - "28"
  - "29"
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 6
  events: 0
  subscribers: 0
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 1
  called_by: 16
  implements: 0
---

# Codeunit 433 "Azure AD Tenant"

> Codeunit 433 "Azure AD Tenant" in System Application (System.Azure.Identity). 6 public procedures. Present since at least BC23, still in BC30, changed in BC28-29.

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

## Properties

| Property | Value |
|---|---|
| Access | Public |
| SingleInstance | true |

## Procedures

- `GetAadTenantId(): Text`: Gets the Microsoft Entra tenant ID.
- `GetAadTenantDomainName(): Text`: Gets the Microsoft Entra tenant domain name. If the Microsoft Graph API cannot be reached, the error is displayed.
- `GetCountryLetterCode(): Code[2]`: Gets the current Microsoft Entra tenant registered country letter code. Visit Microsoft Admin Cententer to view or edit Organizational Information. If the Microsoft Graph API cannot be reached, the error is displayed.
- `GetPreferredLanguage(): Code[2]`: Gets the current Microsoft Entra tenant registered preferred language. Visit Microsoft Admin Cententer to view or edit Organizational Information. If the Microsoft Graph API cannot be reached, the error is displayed.
- `IsVerifiedDomain(Domain: Text): Boolean`: Checks whether a domain is registered as verified on the current Microsoft Entra tenant. If the Microsoft Graph API cannot be reached, the error is displayed.
- `GetPowerPlatformTenantURL(): Text`: Gets the Power Platform tenant URL.

## 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 3705 "Azure AD Tenant Impl."](../codeunit/3705.md) (6 calls: `GetAadTenantDomainName → GetAadTenantDomainName`, `GetAadTenantId → GetAadTenantId`, `GetCountryLetterCode → GetCountryLetterCode`, …)

## Called by

- [Codeunit 2518 "AppSrc Product Deps. Provider"](../codeunit/2518.md) (2 calls: `GetCountryLetterCode → GetCountryLetterCode`, `GetPreferredLanguage → GetPreferredLanguage`)
- [Codeunit 7247 "MDM Http Source Transport"](../codeunit/7247.md) (2 calls: `AcquireToken → GetAadTenantId`, `BuildSourceApiBaseUrl → GetAadTenantId`)
- [Codeunit 1489 "Edit in Excel Workbook Impl."](../codeunit/1489.md) (1 call: `InitializeDataEntityExportInfo → GetAadTenantId`)
- [Codeunit 20105 "AMC Banking Mgt."](../codeunit/20105.md) (1 call: `GetLicenseNumber → GetAadTenantId`)
- [Codeunit 2515 "AppSource Product Manager"](../codeunit/2515.md) (1 call: `SetCommonHeaders → GetAadTenantId`)
- [Codeunit 3704 "Url Helper Impl."](../codeunit/3704.md) (1 call: `GetTenantUrl → GetAadTenantId`)
- [Codeunit 38507 "Job Queue External Events"](../codeunit/38507.md) (1 call: `OnAfterLogError → GetAadTenantId`)
- [Codeunit 6400 "Flow Service Management"](../codeunit/6400.md) (1 call: `TryGetFlowEnvironmentsApi → GetPowerPlatformTenantURL`)
- [Codeunit 6710 "ODataUtility"](../codeunit/6710.md) (1 call: `GenerateExcelTemplateWorkBook → GetAadTenantId`)
- [Codeunit 6941 "EA Http Client"](../codeunit/6941.md) (1 call: `BuildErpConfigJson → GetAadTenantId`)
- [Codeunit 7201 "CDS Integration Impl."](../codeunit/7201.md) (1 call: `GetAadTenantId → GetAadTenantId`)
- [Codeunit 7774 "Copilot Capability Impl"](../codeunit/7774.md) (1 call: `IsTenantAllowedToUseAOAI → GetAadTenantId`)
- [Codeunit 8351 "MCP Config Implementation"](../codeunit/8351.md) (1 call: `GenerateConnectionString → GetAadTenantId`)
- [Codeunit 9033 "Invite External Accountant"](../codeunit/9033.md) (1 call: `InvokeRequest → GetAadTenantId`)
- [Codeunit 9822 "Plan Configuration Impl."](../codeunit/9822.md) (1 call: `BCAdminCenterUrl → GetAadTenantId`)
- [Table 6986 "Tenant Feedback Setting"](../table/6986.md) (1 call: `Load → GetAadTenantId`)

## Recent changes

- 2026-08-07 [#8499 Adding `IsVerifiedDomain` to the `AzureADTenant` module](../../changes/bcapps/8499.md) (main, BC30, feature)

## Across versions

- Present in: BC23-30
- Changed (declaration) in: BC28-29

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