---
title: "Codeunit 132916 Azure AD Plan Test Library, extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/132916-azure-ad-plan-test-library/points/
object: https://jonas-paprotka.de/ref/codeunit/132916-azure-ad-plan-test-library/
app: "System Application Test Library"
major: 29
source: https://jonas-paprotka.de/ref/codeunit/132916-azure-ad-plan-test-library/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 132916 Azure AD Plan Test Library, extension points 29

JOP-AL, https://jonas-paprotka.de/ref/codeunit/132916-azure-ad-plan-test-library/points/

9 procedures and triggers with a step in src/System Application/Test Library/Azure AD Plan/src/AzureADPlanTestLibrary.Codeunit.al, in source order, read from the text, not from a run.

## AssignUserToPlan

[Line 32](https://jonas-paprotka.de/ref/codeunit/132916-azure-ad-plan-test-library/source/#L32).

- [37](https://jonas-paprotka.de/ref/codeunit/132916-azure-ad-plan-test-library/source/#L37) validates [Table 9005 User Plan](https://jonas-paprotka.de/ref/table/9005-user-plan/) `Plan ID`
- [38](https://jonas-paprotka.de/ref/codeunit/132916-azure-ad-plan-test-library/source/#L38) validates [Table 9005 User Plan](https://jonas-paprotka.de/ref/table/9005-user-plan/) `User Security ID`
- [44](https://jonas-paprotka.de/ref/codeunit/132916-azure-ad-plan-test-library/source/#L44) writes [Table 9005 User Plan](https://jonas-paprotka.de/ref/table/9005-user-plan/) Insert(true)

## ReassignPlanToUser

[Line 52](https://jonas-paprotka.de/ref/codeunit/132916-azure-ad-plan-test-library/source/#L52).

- [58](https://jonas-paprotka.de/ref/codeunit/132916-azure-ad-plan-test-library/source/#L58) writes [Table 9005 User Plan](https://jonas-paprotka.de/ref/table/9005-user-plan/) Rename

## CreatePlan

[Line 66](https://jonas-paprotka.de/ref/codeunit/132916-azure-ad-plan-test-library/source/#L66).

- [79](https://jonas-paprotka.de/ref/codeunit/132916-azure-ad-plan-test-library/source/#L79) writes [Table 9004 Plan](https://jonas-paprotka.de/ref/table/9004-plan/) Insert(true)

## CreatePlan

[Line 89](https://jonas-paprotka.de/ref/codeunit/132916-azure-ad-plan-test-library/source/#L89).

- [94](https://jonas-paprotka.de/ref/codeunit/132916-azure-ad-plan-test-library/source/#L94) calls [Codeunit 9016 Azure AD Plan](https://jonas-paprotka.de/ref/codeunit/9016-azure-ad-plan/) `DoesPlanExist`
- [102](https://jonas-paprotka.de/ref/codeunit/132916-azure-ad-plan-test-library/source/#L102) writes [Table 9004 Plan](https://jonas-paprotka.de/ref/table/9004-plan/) Insert(true)

## ChangePlanRoleCenterID

[Line 110](https://jonas-paprotka.de/ref/codeunit/132916-azure-ad-plan-test-library/source/#L110).

- [115](https://jonas-paprotka.de/ref/codeunit/132916-azure-ad-plan-test-library/source/#L115) validates [Table 9004 Plan](https://jonas-paprotka.de/ref/table/9004-plan/) `Role Center ID`
- [116](https://jonas-paprotka.de/ref/codeunit/132916-azure-ad-plan-test-library/source/#L116) writes [Table 9004 Plan](https://jonas-paprotka.de/ref/table/9004-plan/) Modify(true)

## DeletePlan

[Line 123](https://jonas-paprotka.de/ref/codeunit/132916-azure-ad-plan-test-library/source/#L123).

- [129](https://jonas-paprotka.de/ref/codeunit/132916-azure-ad-plan-test-library/source/#L129) writes [Table 9004 Plan](https://jonas-paprotka.de/ref/table/9004-plan/) DeleteAll

## DeleteAllPlans

[Line 135](https://jonas-paprotka.de/ref/codeunit/132916-azure-ad-plan-test-library/source/#L135).

- [139](https://jonas-paprotka.de/ref/codeunit/132916-azure-ad-plan-test-library/source/#L139) writes [Table 9004 Plan](https://jonas-paprotka.de/ref/table/9004-plan/) DeleteAll

## DeleteAllUserPlan

[Line 145](https://jonas-paprotka.de/ref/codeunit/132916-azure-ad-plan-test-library/source/#L145).

- [149](https://jonas-paprotka.de/ref/codeunit/132916-azure-ad-plan-test-library/source/#L149) writes [Table 9005 User Plan](https://jonas-paprotka.de/ref/table/9005-user-plan/) DeleteAll

## RemoveUserFromPlan

[Line 157](https://jonas-paprotka.de/ref/codeunit/132916-azure-ad-plan-test-library/source/#L157).

- [162](https://jonas-paprotka.de/ref/codeunit/132916-azure-ad-plan-test-library/source/#L162) writes [Table 9005 User Plan](https://jonas-paprotka.de/ref/table/9005-user-plan/) Delete(true)

## Source

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

JOP-AL, 2026-11-20.
