---
title: "Codeunit 9029 Azure AD User Sync Impl., extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/9029-azure-ad-user-sync-impl/points/
object: https://jonas-paprotka.de/ref/codeunit/9029-azure-ad-user-sync-impl/
app: "System Application"
major: 29
source: https://jonas-paprotka.de/ref/codeunit/9029-azure-ad-user-sync-impl/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 9029 Azure AD User Sync Impl., extension points 29

JOP-AL, https://jonas-paprotka.de/ref/codeunit/9029-azure-ad-user-sync-impl/points/

18 procedures and triggers with a step in src/System Application/App/Azure AD User Management/src/User sync/AzureADUserSyncImpl.Codeunit.al, in source order, read from the text, not from a run.

## FetchUpdatesFromAzureGraph

[Line 56](https://jonas-paprotka.de/ref/codeunit/9029-azure-ad-user-sync-impl/source/#L56).

- [63](https://jonas-paprotka.de/ref/codeunit/9029-azure-ad-user-sync-impl/source/#L63) writes [Table 9010 Azure AD User Update Buffer](https://jonas-paprotka.de/ref/table/9010-azure-ad-user-update-buffer/) DeleteAll
- [66](https://jonas-paprotka.de/ref/codeunit/9029-azure-ad-user-sync-impl/source/#L66) calls [Codeunit 9012 Azure AD Graph](https://jonas-paprotka.de/ref/codeunit/9012-azure-ad-graph/) `IsEnvironmentSecurityGroupDefined`
- [67](https://jonas-paprotka.de/ref/codeunit/9029-azure-ad-user-sync-impl/source/#L67) calls `FetchUpdatesFromEnvironmentDirectoryGroup`
- [69](https://jonas-paprotka.de/ref/codeunit/9029-azure-ad-user-sync-impl/source/#L69) calls `FetchUpdatesForLicensedUsers`
- [70](https://jonas-paprotka.de/ref/codeunit/9029-azure-ad-user-sync-impl/source/#L70) calls `FetchUpdatesForDeviceUsers`
- [73](https://jonas-paprotka.de/ref/codeunit/9029-azure-ad-user-sync-impl/source/#L73) calls `FetchUpdatesForSkippedUsers`
- [74](https://jonas-paprotka.de/ref/codeunit/9029-azure-ad-user-sync-impl/source/#L74) calls `HandleRemovedUsers`

## FetchUpdatesForLicensedUsers

[Line 78](https://jonas-paprotka.de/ref/codeunit/9029-azure-ad-user-sync-impl/source/#L78), local.

- [91](https://jonas-paprotka.de/ref/codeunit/9029-azure-ad-user-sync-impl/source/#L91) calls [Codeunit 9016 Azure AD Plan](https://jonas-paprotka.de/ref/codeunit/9016-azure-ad-plan/) `GetAllPlanIds`
- [92](https://jonas-paprotka.de/ref/codeunit/9029-azure-ad-user-sync-impl/source/#L92) calls [Codeunit 9027 Plan Ids](https://jonas-paprotka.de/ref/codeunit/9027-plan-ids/) `GetMicrosoft365PlanId`
- [93](https://jonas-paprotka.de/ref/codeunit/9029-azure-ad-user-sync-impl/source/#L93) calls [Codeunit 9027 Plan Ids](https://jonas-paprotka.de/ref/codeunit/9027-plan-ids/) `GetGlobalAdminPlanId`
- [94](https://jonas-paprotka.de/ref/codeunit/9029-azure-ad-user-sync-impl/source/#L94) calls [Codeunit 9027 Plan Ids](https://jonas-paprotka.de/ref/codeunit/9027-plan-ids/) `GetD365AdminPlanId`
- [95](https://jonas-paprotka.de/ref/codeunit/9029-azure-ad-user-sync-impl/source/#L95) calls [Codeunit 9027 Plan Ids](https://jonas-paprotka.de/ref/codeunit/9027-plan-ids/) `GetBCAdminPlanId`
- [96](https://jonas-paprotka.de/ref/codeunit/9029-azure-ad-user-sync-impl/source/#L96) calls `ConvertList`
- [98](https://jonas-paprotka.de/ref/codeunit/9029-azure-ad-user-sync-impl/source/#L98) calls [Codeunit 9012 Azure AD Graph](https://jonas-paprotka.de/ref/codeunit/9012-azure-ad-graph/) `GetLicensedUsersPage`
- [105](https://jonas-paprotka.de/ref/codeunit/9029-azure-ad-user-sync-impl/source/#L105) calls `GetUpdatesFromGraphUserInfo`

## FetchUpdatesForDeviceUsers

[Line 110](https://jonas-paprotka.de/ref/codeunit/9029-azure-ad-user-sync-impl/source/#L110), local.

- [116](https://jonas-paprotka.de/ref/codeunit/9029-azure-ad-user-sync-impl/source/#L116) calls [Codeunit 9012 Azure AD Graph](https://jonas-paprotka.de/ref/codeunit/9012-azure-ad-graph/) `GetGroupMembers`
- [122](https://jonas-paprotka.de/ref/codeunit/9029-azure-ad-user-sync-impl/source/#L122) calls `GetUpdatesFromGraphUserInfo`

## FetchUpdatesFromEnvironmentDirectoryGroup

[Line 126](https://jonas-paprotka.de/ref/codeunit/9029-azure-ad-user-sync-impl/source/#L126), local.

- [135](https://jonas-paprotka.de/ref/codeunit/9029-azure-ad-user-sync-impl/source/#L135) calls [Codeunit 9012 Azure AD Graph](https://jonas-paprotka.de/ref/codeunit/9012-azure-ad-graph/) `GetMembersPageForGroupId`
- [135](https://jonas-paprotka.de/ref/codeunit/9029-azure-ad-user-sync-impl/source/#L135) calls [Codeunit 9012 Azure AD Graph](https://jonas-paprotka.de/ref/codeunit/9012-azure-ad-graph/) `GetEnvironmentSecurityGroupId`
- [142](https://jonas-paprotka.de/ref/codeunit/9029-azure-ad-user-sync-impl/source/#L142) calls [Codeunit 9016 Azure AD Plan](https://jonas-paprotka.de/ref/codeunit/9016-azure-ad-plan/) `GetPlanIDs`
- [144](https://jonas-paprotka.de/ref/codeunit/9029-azure-ad-user-sync-impl/source/#L144) calls `GetUpdatesFromGraphUserInfo`
- [148](https://jonas-paprotka.de/ref/codeunit/9029-azure-ad-user-sync-impl/source/#L148) calls [Codeunit 9012 Azure AD Graph](https://jonas-paprotka.de/ref/codeunit/9012-azure-ad-graph/) `GetEnvironmentSecurityGroupId`

## FetchUpdatesForSkippedUsers

[Line 152](https://jonas-paprotka.de/ref/codeunit/9029-azure-ad-user-sync-impl/source/#L152), local.

- [166](https://jonas-paprotka.de/ref/codeunit/9029-azure-ad-user-sync-impl/source/#L166) calls [Codeunit 9843 User Selection](https://jonas-paprotka.de/ref/codeunit/9843-user-selection/) `FilterSystemUserAndAADGroupUsers`
- [175](https://jonas-paprotka.de/ref/codeunit/9029-azure-ad-user-sync-impl/source/#L175) calls [Codeunit 9024 Azure AD Graph User](https://jonas-paprotka.de/ref/codeunit/9024-azure-ad-graph-user/) `TryGetUserAuthenticationObjectId`
- [176](https://jonas-paprotka.de/ref/codeunit/9029-azure-ad-user-sync-impl/source/#L176) calls [Codeunit 9012 Azure AD Graph](https://jonas-paprotka.de/ref/codeunit/9012-azure-ad-graph/) `TryGetUserByObjectId`
- [178](https://jonas-paprotka.de/ref/codeunit/9029-azure-ad-user-sync-impl/source/#L178) calls [Codeunit 9016 Azure AD Plan](https://jonas-paprotka.de/ref/codeunit/9016-azure-ad-plan/) `GetPlanIDs`
- [179](https://jonas-paprotka.de/ref/codeunit/9029-azure-ad-user-sync-impl/source/#L179) calls [Codeunit 9027 Plan Ids](https://jonas-paprotka.de/ref/codeunit/9027-plan-ids/) `GetGlobalAdminPlanId`
- [180](https://jonas-paprotka.de/ref/codeunit/9029-azure-ad-user-sync-impl/source/#L180) calls [Codeunit 9027 Plan Ids](https://jonas-paprotka.de/ref/codeunit/9027-plan-ids/) `GetD365AdminPlanId`
- [181](https://jonas-paprotka.de/ref/codeunit/9029-azure-ad-user-sync-impl/source/#L181) calls [Codeunit 9027 Plan Ids](https://jonas-paprotka.de/ref/codeunit/9027-plan-ids/) `GetBCAdminPlanId`
- [182](https://jonas-paprotka.de/ref/codeunit/9029-azure-ad-user-sync-impl/source/#L182) calls [Codeunit 9012 Azure AD Graph](https://jonas-paprotka.de/ref/codeunit/9012-azure-ad-graph/) `IsEnvironmentSecurityGroupDefined`
- [182](https://jonas-paprotka.de/ref/codeunit/9029-azure-ad-user-sync-impl/source/#L182) calls [Codeunit 9027 Plan Ids](https://jonas-paprotka.de/ref/codeunit/9027-plan-ids/) `GetMicrosoft365PlanId`
- [184](https://jonas-paprotka.de/ref/codeunit/9029-azure-ad-user-sync-impl/source/#L184) calls `GetUpdatesFromGraphUserInfo`

## HandleRemovedUsers

[Line 193](https://jonas-paprotka.de/ref/codeunit/9029-azure-ad-user-sync-impl/source/#L193), local.

- [202](https://jonas-paprotka.de/ref/codeunit/9029-azure-ad-user-sync-impl/source/#L202) calls [Codeunit 9843 User Selection](https://jonas-paprotka.de/ref/codeunit/9843-user-selection/) `FilterSystemUserAndAADGroupUsers`
- [208](https://jonas-paprotka.de/ref/codeunit/9029-azure-ad-user-sync-impl/source/#L208) calls [Codeunit 9016 Azure AD Plan](https://jonas-paprotka.de/ref/codeunit/9016-azure-ad-plan/) `DoesUserHavePlans`
- [210](https://jonas-paprotka.de/ref/codeunit/9029-azure-ad-user-sync-impl/source/#L210) calls [Codeunit 9017 Azure AD User Mgmt. Impl.](https://jonas-paprotka.de/ref/codeunit/9017-azure-ad-user-mgmt-impl/) `IsUserDelegated`
- [213](https://jonas-paprotka.de/ref/codeunit/9029-azure-ad-user-sync-impl/source/#L213) calls `AddChangesForRemovedUser`

## GetUpdatesFromGraphUserInfo

[Line 219](https://jonas-paprotka.de/ref/codeunit/9029-azure-ad-user-sync-impl/source/#L219), local.

- [228](https://jonas-paprotka.de/ref/codeunit/9029-azure-ad-user-sync-impl/source/#L228) calls [Codeunit 9024 Azure AD Graph User](https://jonas-paprotka.de/ref/codeunit/9024-azure-ad-graph-user/) `GetUser`
- [230](https://jonas-paprotka.de/ref/codeunit/9029-azure-ad-user-sync-impl/source/#L230) calls `AddChangesForExistingUser`
- [233](https://jonas-paprotka.de/ref/codeunit/9029-azure-ad-user-sync-impl/source/#L233) calls [Codeunit 9016 Azure AD Plan](https://jonas-paprotka.de/ref/codeunit/9016-azure-ad-plan/) `GetPlanIDs`
- [234](https://jonas-paprotka.de/ref/codeunit/9029-azure-ad-user-sync-impl/source/#L234) calls `SkipCreatingUserDuringSync`
- [236](https://jonas-paprotka.de/ref/codeunit/9029-azure-ad-user-sync-impl/source/#L236) calls `AddChangesForNewUser`

## SkipCreatingUserDuringSync

[Line 247](https://jonas-paprotka.de/ref/codeunit/9029-azure-ad-user-sync-impl/source/#L247), local.

- [252](https://jonas-paprotka.de/ref/codeunit/9029-azure-ad-user-sync-impl/source/#L252) calls [Codeunit 9012 Azure AD Graph](https://jonas-paprotka.de/ref/codeunit/9012-azure-ad-graph/) `IsEnvironmentSecurityGroupDefined`
- [256](https://jonas-paprotka.de/ref/codeunit/9029-azure-ad-user-sync-impl/source/#L256) calls [Codeunit 9027 Plan Ids](https://jonas-paprotka.de/ref/codeunit/9027-plan-ids/) `GetGlobalAdminPlanId`
- [256](https://jonas-paprotka.de/ref/codeunit/9029-azure-ad-user-sync-impl/source/#L256) calls [Codeunit 9027 Plan Ids](https://jonas-paprotka.de/ref/codeunit/9027-plan-ids/) `GetD365AdminPlanId`
- [256](https://jonas-paprotka.de/ref/codeunit/9029-azure-ad-user-sync-impl/source/#L256) calls [Codeunit 9027 Plan Ids](https://jonas-paprotka.de/ref/codeunit/9027-plan-ids/) `GetBCAdminPlanId`
- [256](https://jonas-paprotka.de/ref/codeunit/9029-azure-ad-user-sync-impl/source/#L256) calls [Codeunit 9027 Plan Ids](https://jonas-paprotka.de/ref/codeunit/9027-plan-ids/) `GetMicrosoft365PlanId`

## AddChangesForNewUser

[Line 263](https://jonas-paprotka.de/ref/codeunit/9029-azure-ad-user-sync-impl/source/#L263), local.

- [274](https://jonas-paprotka.de/ref/codeunit/9029-azure-ad-user-sync-impl/source/#L274) calls `GetUpdateEntityFromGraph`
- [280](https://jonas-paprotka.de/ref/codeunit/9029-azure-ad-user-sync-impl/source/#L280) validates [Table 9010 Azure AD User Update Buffer](https://jonas-paprotka.de/ref/table/9010-azure-ad-user-update-buffer/) `Update Entity`
- [282](https://jonas-paprotka.de/ref/codeunit/9029-azure-ad-user-sync-impl/source/#L282) calls [Codeunit 9024 Azure AD Graph User](https://jonas-paprotka.de/ref/codeunit/9024-azure-ad-graph-user/) `GetDisplayName`
- [285](https://jonas-paprotka.de/ref/codeunit/9029-azure-ad-user-sync-impl/source/#L285) writes [Table 9010 Azure AD User Update Buffer](https://jonas-paprotka.de/ref/table/9010-azure-ad-user-update-buffer/) Insert

## AddChangesForExistingUser

[Line 291](https://jonas-paprotka.de/ref/codeunit/9029-azure-ad-user-sync-impl/source/#L291), local.

- [304](https://jonas-paprotka.de/ref/codeunit/9029-azure-ad-user-sync-impl/source/#L304) calls `GetUpdateEntityFromGraph`
- [305](https://jonas-paprotka.de/ref/codeunit/9029-azure-ad-user-sync-impl/source/#L305) calls `GetUpdateEntityFromUser`
- [309](https://jonas-paprotka.de/ref/codeunit/9029-azure-ad-user-sync-impl/source/#L309) calls [Codeunit 9016 Azure AD Plan](https://jonas-paprotka.de/ref/codeunit/9016-azure-ad-plan/) `CheckIfPlansDifferent`
- [322](https://jonas-paprotka.de/ref/codeunit/9029-azure-ad-user-sync-impl/source/#L322) validates [Table 9010 Azure AD User Update Buffer](https://jonas-paprotka.de/ref/table/9010-azure-ad-user-update-buffer/) `Update Entity`
- [325](https://jonas-paprotka.de/ref/codeunit/9029-azure-ad-user-sync-impl/source/#L325) calls [Codeunit 9024 Azure AD Graph User](https://jonas-paprotka.de/ref/codeunit/9024-azure-ad-graph-user/) `GetDisplayName`
- [328](https://jonas-paprotka.de/ref/codeunit/9029-azure-ad-user-sync-impl/source/#L328) writes [Table 9010 Azure AD User Update Buffer](https://jonas-paprotka.de/ref/table/9010-azure-ad-user-update-buffer/) Insert

## AddChangesForRemovedUser

[Line 334](https://jonas-paprotka.de/ref/codeunit/9029-azure-ad-user-sync-impl/source/#L334), local.

- [339](https://jonas-paprotka.de/ref/codeunit/9029-azure-ad-user-sync-impl/source/#L339) calls [Codeunit 9024 Azure AD Graph User](https://jonas-paprotka.de/ref/codeunit/9024-azure-ad-graph-user/) `GetUserAuthenticationObjectId`
- [345](https://jonas-paprotka.de/ref/codeunit/9029-azure-ad-user-sync-impl/source/#L345) validates [Table 9010 Azure AD User Update Buffer](https://jonas-paprotka.de/ref/table/9010-azure-ad-user-update-buffer/) `Update Entity`
- [346](https://jonas-paprotka.de/ref/codeunit/9029-azure-ad-user-sync-impl/source/#L346) calls `GetUpdateEntityFromUser`
- [350](https://jonas-paprotka.de/ref/codeunit/9029-azure-ad-user-sync-impl/source/#L350) writes [Table 9010 Azure AD User Update Buffer](https://jonas-paprotka.de/ref/table/9010-azure-ad-user-update-buffer/) Insert

## GetUpdateEntityFromUser

[Line 354](https://jonas-paprotka.de/ref/codeunit/9029-azure-ad-user-sync-impl/source/#L354), local.

- [379](https://jonas-paprotka.de/ref/codeunit/9029-azure-ad-user-sync-impl/source/#L379) calls [Codeunit 9016 Azure AD Plan](https://jonas-paprotka.de/ref/codeunit/9016-azure-ad-plan/) `GetPlanNames`
- [380](https://jonas-paprotka.de/ref/codeunit/9029-azure-ad-user-sync-impl/source/#L380) calls `ConvertListToText`

## GetUpdateEntityFromGraph

[Line 386](https://jonas-paprotka.de/ref/codeunit/9029-azure-ad-user-sync-impl/source/#L386), local.

- [393](https://jonas-paprotka.de/ref/codeunit/9029-azure-ad-user-sync-impl/source/#L393) calls [Codeunit 9024 Azure AD Graph User](https://jonas-paprotka.de/ref/codeunit/9024-azure-ad-graph-user/) `GetAuthenticationEmail`
- [395](https://jonas-paprotka.de/ref/codeunit/9029-azure-ad-user-sync-impl/source/#L395) calls [Codeunit 9024 Azure AD Graph User](https://jonas-paprotka.de/ref/codeunit/9024-azure-ad-graph-user/) `GetContactEmail`
- [397](https://jonas-paprotka.de/ref/codeunit/9029-azure-ad-user-sync-impl/source/#L397) calls [Codeunit 9024 Azure AD Graph User](https://jonas-paprotka.de/ref/codeunit/9024-azure-ad-graph-user/) `GetFullName`
- [400](https://jonas-paprotka.de/ref/codeunit/9029-azure-ad-user-sync-impl/source/#L400) calls [Codeunit 9024 Azure AD Graph User](https://jonas-paprotka.de/ref/codeunit/9024-azure-ad-graph-user/) `GetPreferredLanguageID`
- [409](https://jonas-paprotka.de/ref/codeunit/9029-azure-ad-user-sync-impl/source/#L409) calls [Codeunit 9016 Azure AD Plan](https://jonas-paprotka.de/ref/codeunit/9016-azure-ad-plan/) `GetPlanNames`
- [410](https://jonas-paprotka.de/ref/codeunit/9029-azure-ad-user-sync-impl/source/#L410) calls `ConvertListToText`

## ApplyUpdatesFromAzureGraph

[Line 450](https://jonas-paprotka.de/ref/codeunit/9029-azure-ad-user-sync-impl/source/#L450).

- [455](https://jonas-paprotka.de/ref/codeunit/9029-azure-ad-user-sync-impl/source/#L455) calls `ConsolidatePlansNamesFromGraph`
- [462](https://jonas-paprotka.de/ref/codeunit/9029-azure-ad-user-sync-impl/source/#L462) calls `ProcessAllUpdatesForUser`

## ConsolidatePlansNamesFromGraph

[Line 472](https://jonas-paprotka.de/ref/codeunit/9029-azure-ad-user-sync-impl/source/#L472), local.

- [479](https://jonas-paprotka.de/ref/codeunit/9029-azure-ad-user-sync-impl/source/#L479) calls `ConvertTextToList`

## ProcessAllUpdatesForUser

[Line 487](https://jonas-paprotka.de/ref/codeunit/9029-azure-ad-user-sync-impl/source/#L487), local.

- [497](https://jonas-paprotka.de/ref/codeunit/9029-azure-ad-user-sync-impl/source/#L497) raises `OnApplyUpdateFromAzureGraph`
- [506](https://jonas-paprotka.de/ref/codeunit/9029-azure-ad-user-sync-impl/source/#L506) writes [Table 9010 Azure AD User Update Buffer](https://jonas-paprotka.de/ref/table/9010-azure-ad-user-update-buffer/) Modify

## ApplyUpdateFromAzureGraph

[Line 514](https://jonas-paprotka.de/ref/codeunit/9029-azure-ad-user-sync-impl/source/#L514), local.

- [529](https://jonas-paprotka.de/ref/codeunit/9029-azure-ad-user-sync-impl/source/#L529) calls [Codeunit 9024 Azure AD Graph User](https://jonas-paprotka.de/ref/codeunit/9024-azure-ad-graph-user/) `GetUser`
- [530](https://jonas-paprotka.de/ref/codeunit/9029-azure-ad-user-sync-impl/source/#L530) calls `CreateUser`
- [542](https://jonas-paprotka.de/ref/codeunit/9029-azure-ad-user-sync-impl/source/#L542) writes [Table 2000000120 User](https://jonas-paprotka.de/ref/table/2000000120-user/) Modify
- [544](https://jonas-paprotka.de/ref/codeunit/9029-azure-ad-user-sync-impl/source/#L544) calls [Codeunit 9024 Azure AD Graph User](https://jonas-paprotka.de/ref/codeunit/9024-azure-ad-graph-user/) `EnsureAuthenticationEmailIsNotInUse`
- [546](https://jonas-paprotka.de/ref/codeunit/9029-azure-ad-user-sync-impl/source/#L546) writes [Table 2000000120 User](https://jonas-paprotka.de/ref/table/2000000120-user/) Modify
- [552](https://jonas-paprotka.de/ref/codeunit/9029-azure-ad-user-sync-impl/source/#L552) writes [Table 2000000120 User](https://jonas-paprotka.de/ref/table/2000000120-user/) Modify
- [557](https://jonas-paprotka.de/ref/codeunit/9029-azure-ad-user-sync-impl/source/#L557) writes [Table 2000000120 User](https://jonas-paprotka.de/ref/table/2000000120-user/) Modify
- [562](https://jonas-paprotka.de/ref/codeunit/9029-azure-ad-user-sync-impl/source/#L562) calls [Codeunit 43 Language](https://jonas-paprotka.de/ref/codeunit/43-language/) `SetPreferredLanguageID`
- [565](https://jonas-paprotka.de/ref/codeunit/9029-azure-ad-user-sync-impl/source/#L565) calls [Codeunit 9016 Azure AD Plan](https://jonas-paprotka.de/ref/codeunit/9016-azure-ad-plan/) `UpdateUserPlans`

## CreateUser

[Line 572](https://jonas-paprotka.de/ref/codeunit/9029-azure-ad-user-sync-impl/source/#L572), local.

- [577](https://jonas-paprotka.de/ref/codeunit/9029-azure-ad-user-sync-impl/source/#L577) calls [Codeunit 9017 Azure AD User Mgmt. Impl.](https://jonas-paprotka.de/ref/codeunit/9017-azure-ad-user-mgmt-impl/) `CreateNewUserInternal`
- [585](https://jonas-paprotka.de/ref/codeunit/9029-azure-ad-user-sync-impl/source/#L585) writes [Table 2000000120 User](https://jonas-paprotka.de/ref/table/2000000120-user/) Modify

## Source

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

JOP-AL, 2026-11-20.
