---
title: "Codeunit 6304 Setup Azure AD Mgt. Provider, extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/6304-setup-azure-ad-mgt-provider/points/
object: https://jonas-paprotka.de/ref/codeunit/6304-setup-azure-ad-mgt-provider/
app: "Base Application"
major: 29
source: https://jonas-paprotka.de/ref/codeunit/6304-setup-azure-ad-mgt-provider/source/
checked: 2026-11-20
changed: 2026-10-05
subject: "Microsoft Dynamics 365 Business Central"
license: "Metadata from Microsoft's symbol packages. AL source MIT, Copyright (c) Microsoft Corporation. Selection and wording © 2026 JOP-AL. https://jonas-paprotka.de/licenses/"
---

# Codeunit 6304 Setup Azure AD Mgt. Provider, extension points 29

JOP-AL, https://jonas-paprotka.de/ref/codeunit/6304-setup-azure-ad-mgt-provider/points/

5 procedures and triggers with a step in src/Layers/W1/BaseApp/System/AzureAD/SetupAzureADMgtProvider.Codeunit.al, in source order, read from the text, not from a run.

## OnRun

[Line 11](https://jonas-paprotka.de/ref/codeunit/6304-setup-azure-ad-mgt-provider/source/#L11), trigger.

- [13](https://jonas-paprotka.de/ref/codeunit/6304-setup-azure-ad-mgt-provider/source/#L13) calls `InitSetup`

## InitSetup

[Line 18](https://jonas-paprotka.de/ref/codeunit/6304-setup-azure-ad-mgt-provider/source/#L18), local.

- [23](https://jonas-paprotka.de/ref/codeunit/6304-setup-azure-ad-mgt-provider/source/#L23) calls [Table 6303 Azure AD Mgt. Setup](https://jonas-paprotka.de/ref/table/6303-azure-ad-mgt-setup/) `ResetToDefault`
- [24](https://jonas-paprotka.de/ref/codeunit/6304-setup-azure-ad-mgt-provider/source/#L24) writes [Table 6303 Azure AD Mgt. Setup](https://jonas-paprotka.de/ref/table/6303-azure-ad-mgt-setup/) Insert
- [26](https://jonas-paprotka.de/ref/codeunit/6304-setup-azure-ad-mgt-provider/source/#L26) calls [Table 6303 Azure AD Mgt. Setup](https://jonas-paprotka.de/ref/table/6303-azure-ad-mgt-setup/) `IsSetupDifferentFromDefault`
- [27](https://jonas-paprotka.de/ref/codeunit/6304-setup-azure-ad-mgt-provider/source/#L27) calls [Table 6303 Azure AD Mgt. Setup](https://jonas-paprotka.de/ref/table/6303-azure-ad-mgt-setup/) `ResetToDefault`
- [28](https://jonas-paprotka.de/ref/codeunit/6304-setup-azure-ad-mgt-provider/source/#L28) writes [Table 6303 Azure AD Mgt. Setup](https://jonas-paprotka.de/ref/table/6303-azure-ad-mgt-setup/) Modify

## OnAfterInsertAzureADMgtSetup

[Line 33](https://jonas-paprotka.de/ref/codeunit/6304-setup-azure-ad-mgt-provider/source/#L33), local.

- [35](https://jonas-paprotka.de/ref/codeunit/6304-setup-azure-ad-mgt-provider/source/#L35) calls `SendTelemetryOnCustomSetup`

## OnAfterModifyAzureADMgtSetup

[Line 39](https://jonas-paprotka.de/ref/codeunit/6304-setup-azure-ad-mgt-provider/source/#L39), local.

- [41](https://jonas-paprotka.de/ref/codeunit/6304-setup-azure-ad-mgt-provider/source/#L41) calls `SendTelemetryOnCustomSetup`

## SendTelemetryOnCustomSetup

[Line 44](https://jonas-paprotka.de/ref/codeunit/6304-setup-azure-ad-mgt-provider/source/#L44), local.

- [51](https://jonas-paprotka.de/ref/codeunit/6304-setup-azure-ad-mgt-provider/source/#L51) calls [Table 6303 Azure AD Mgt. Setup](https://jonas-paprotka.de/ref/table/6303-azure-ad-mgt-setup/) `IsSetupDifferentFromDefault`
- [52](https://jonas-paprotka.de/ref/codeunit/6304-setup-azure-ad-mgt-provider/source/#L52) calls [Codeunit 8711 Telemetry](https://jonas-paprotka.de/ref/codeunit/8711-telemetry/) `LogMessage`

## Source

AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at 4303e5e584d3aa5d9e98cbc615525a5396ad6ed7.

JOP-AL, 2026-11-20.
