---
title: "Table 9012 AAD Application, extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/table/9012-aad-application/points/
object: https://jonas-paprotka.de/ref/table/9012-aad-application/
app: "Base Application"
major: 29
source: https://jonas-paprotka.de/ref/table/9012-aad-application/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/"
---

# Table 9012 AAD Application, extension points 29

JOP-AL, https://jonas-paprotka.de/ref/table/9012-aad-application/points/

6 procedures and triggers with a step in src/Layers/W1/BaseApp/System/AadApplication/AADApplication.Table.al, in source order, read from the text, not from a run.

## State.OnValidate

[Line 30](https://jonas-paprotka.de/ref/table/9012-aad-application/source/#L30), trigger.

- [39](https://jonas-paprotka.de/ref/table/9012-aad-application/source/#L39) calls `UserExists`
- [43](https://jonas-paprotka.de/ref/table/9012-aad-application/source/#L43) calls [Codeunit 8821 AAD Application Setup](https://jonas-paprotka.de/ref/codeunit/8821-aad-application-setup/) `GetD365BCForVEAppId`
- [44](https://jonas-paprotka.de/ref/table/9012-aad-application/source/#L44) calls [Codeunit 8821 AAD Application Setup](https://jonas-paprotka.de/ref/codeunit/8821-aad-application-setup/) `GetPowerPagesAnonymousAppId`
- [45](https://jonas-paprotka.de/ref/table/9012-aad-application/source/#L45) calls [Codeunit 8821 AAD Application Setup](https://jonas-paprotka.de/ref/codeunit/8821-aad-application-setup/) `GetPowerPagesAuthenticatedAppId`
- [46](https://jonas-paprotka.de/ref/table/9012-aad-application/source/#L46) calls [Codeunit 8821 AAD Application Setup](https://jonas-paprotka.de/ref/codeunit/8821-aad-application-setup/) `GetExpenseAgentAuthenticatedAppId`
- [47](https://jonas-paprotka.de/ref/table/9012-aad-application/source/#L47) calls `CreateUserFromAADApplication`
- [49](https://jonas-paprotka.de/ref/table/9012-aad-application/source/#L49) calls [Codeunit 27 Confirm Management](https://jonas-paprotka.de/ref/codeunit/27-confirm-management/) `GetResponseOrDefault`
- [50](https://jonas-paprotka.de/ref/table/9012-aad-application/source/#L50) calls `CreateUserFromAADApplication`
- [55](https://jonas-paprotka.de/ref/table/9012-aad-application/source/#L55) calls [Codeunit 152 User Permissions](https://jonas-paprotka.de/ref/codeunit/152-user-permissions/) `CanManageUsersOnTenant`
- [61](https://jonas-paprotka.de/ref/table/9012-aad-application/source/#L61) writes [Table 2000000120 User](https://jonas-paprotka.de/ref/table/2000000120-user/) Modify

## App ID.OnLookup

[Line 68](https://jonas-paprotka.de/ref/table/9012-aad-application/source/#L68), trigger.

- [72](https://jonas-paprotka.de/ref/table/9012-aad-application/source/#L72) runs [Page 2500 Extension Management](https://jonas-paprotka.de/ref/page/2500-extension-management/)

## CreateUserFromAADApplication

[Line 123](https://jonas-paprotka.de/ref/table/9012-aad-application/source/#L123).

- [129](https://jonas-paprotka.de/ref/table/9012-aad-application/source/#L129) calls `UserExists`
- [132](https://jonas-paprotka.de/ref/table/9012-aad-application/source/#L132) writes [Table 2000000120 User](https://jonas-paprotka.de/ref/table/2000000120-user/) Modify
- [143](https://jonas-paprotka.de/ref/table/9012-aad-application/source/#L143) writes [Table 9012 AAD Application](https://jonas-paprotka.de/ref/table/9012-aad-application/) Modify
- [144](https://jonas-paprotka.de/ref/table/9012-aad-application/source/#L144) calls `UserExists`
- [147](https://jonas-paprotka.de/ref/table/9012-aad-application/source/#L147) writes [Table 2000000120 User](https://jonas-paprotka.de/ref/table/2000000120-user/) Modify

## UserExists

[Line 154](https://jonas-paprotka.de/ref/table/9012-aad-application/source/#L154).

- [167](https://jonas-paprotka.de/ref/table/9012-aad-application/source/#L167) writes [Table 9012 AAD Application](https://jonas-paprotka.de/ref/table/9012-aad-application/) Modify

## RemoveUser

[Line 176](https://jonas-paprotka.de/ref/table/9012-aad-application/source/#L176).

- [180](https://jonas-paprotka.de/ref/table/9012-aad-application/source/#L180) calls `UserExists`
- [183](https://jonas-paprotka.de/ref/table/9012-aad-application/source/#L183) writes [Table 2000000120 User](https://jonas-paprotka.de/ref/table/2000000120-user/) Delete

## OnDelete

[Line 191](https://jonas-paprotka.de/ref/table/9012-aad-application/source/#L191), trigger.

- [193](https://jonas-paprotka.de/ref/table/9012-aad-application/source/#L193) calls `RemoveUser`

## Source

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

JOP-AL, 2026-11-20.
