---
title: "Codeunit 132927 MockGraphQuery Test Library, extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/132927-mockgraphquery-test-library/points/
object: https://jonas-paprotka.de/ref/codeunit/132927-mockgraphquery-test-library/
app: "System Application Test Library"
major: 29
source: https://jonas-paprotka.de/ref/codeunit/132927-mockgraphquery-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 132927 MockGraphQuery Test Library, extension points 29

JOP-AL, https://jonas-paprotka.de/ref/codeunit/132927-mockgraphquery-test-library/points/

14 procedures and triggers with a step in src/System Application/Test Library/MockGraphQuery/src/MockGraphQueryTestLibrary.Codeunit.al, in source order, read from the text, not from a run.

## CreateAzureADUser

[Line 27](https://jonas-paprotka.de/ref/codeunit/132927-mockgraphquery-test-library/source/#L27).

- [29](https://jonas-paprotka.de/ref/codeunit/132927-mockgraphquery-test-library/source/#L29) calls `CreateUserProperty`
- [31](https://jonas-paprotka.de/ref/codeunit/132927-mockgraphquery-test-library/source/#L31) calls `CreateUserInfo`

## CreateUserProperty

[Line 42](https://jonas-paprotka.de/ref/codeunit/132927-mockgraphquery-test-library/source/#L42), local.

- [51](https://jonas-paprotka.de/ref/codeunit/132927-mockgraphquery-test-library/source/#L51) writes [Table 2000000121 User Property](https://jonas-paprotka.de/ref/table/2000000121-user-property/) Insert

## InsertUser

[Line 68](https://jonas-paprotka.de/ref/codeunit/132927-mockgraphquery-test-library/source/#L68).

- [83](https://jonas-paprotka.de/ref/codeunit/132927-mockgraphquery-test-library/source/#L83) writes [Table 2000000120 User](https://jonas-paprotka.de/ref/table/2000000120-user/) Insert

## SetCurrentUser

[Line 86](https://jonas-paprotka.de/ref/codeunit/132927-mockgraphquery-test-library/source/#L86).

- [90](https://jonas-paprotka.de/ref/codeunit/132927-mockgraphquery-test-library/source/#L90) calls `CreateGraphUser`

## AddGraphUser

[Line 99](https://jonas-paprotka.de/ref/codeunit/132927-mockgraphquery-test-library/source/#L99).

- [103](https://jonas-paprotka.de/ref/codeunit/132927-mockgraphquery-test-library/source/#L103) calls `CreateGraphUser`

## AddAndReturnGraphUser

[Line 107](https://jonas-paprotka.de/ref/codeunit/132927-mockgraphquery-test-library/source/#L107).

- [109](https://jonas-paprotka.de/ref/codeunit/132927-mockgraphquery-test-library/source/#L109) calls `CreateGraphUser`

## AddDirectoryRole

[Line 127](https://jonas-paprotka.de/ref/codeunit/132927-mockgraphquery-test-library/source/#L127).

- [129](https://jonas-paprotka.de/ref/codeunit/132927-mockgraphquery-test-library/source/#L129) calls `CreateDirectoryRole`

## AddUserRole

[Line 133](https://jonas-paprotka.de/ref/codeunit/132927-mockgraphquery-test-library/source/#L133).

- [138](https://jonas-paprotka.de/ref/codeunit/132927-mockgraphquery-test-library/source/#L138) calls `CreateDirectoryRole`

## AddSubscribedSkuWithServicePlan

[Line 144](https://jonas-paprotka.de/ref/codeunit/132927-mockgraphquery-test-library/source/#L144).

- [160](https://jonas-paprotka.de/ref/codeunit/132927-mockgraphquery-test-library/source/#L160) calls `AddDirectorySubscribedSku`

## PopulateMockGraph

[Line 173](https://jonas-paprotka.de/ref/codeunit/132927-mockgraphquery-test-library/source/#L173).

- [179](https://jonas-paprotka.de/ref/codeunit/132927-mockgraphquery-test-library/source/#L179) calls `AddUserPlan`

## AddGraphUser

[Line 201](https://jonas-paprotka.de/ref/codeunit/132927-mockgraphquery-test-library/source/#L201).

- [203](https://jonas-paprotka.de/ref/codeunit/132927-mockgraphquery-test-library/source/#L203) calls `CreateGraphUser`
- [205](https://jonas-paprotka.de/ref/codeunit/132927-mockgraphquery-test-library/source/#L205) calls `AddUserPlan`

## AddGraphUserWithoutPlan

[Line 225](https://jonas-paprotka.de/ref/codeunit/132927-mockgraphquery-test-library/source/#L225).

- [229](https://jonas-paprotka.de/ref/codeunit/132927-mockgraphquery-test-library/source/#L229) calls `CreateGraphUser`

## AddGraphUserWithInDevicesGroup

[Line 233](https://jonas-paprotka.de/ref/codeunit/132927-mockgraphquery-test-library/source/#L233).

- [238](https://jonas-paprotka.de/ref/codeunit/132927-mockgraphquery-test-library/source/#L238) calls `CreateGraphUser`
- [240](https://jonas-paprotka.de/ref/codeunit/132927-mockgraphquery-test-library/source/#L240) calls `GetDevicesGroupName`

## AddGraphUserToDevicesGroup

[Line 245](https://jonas-paprotka.de/ref/codeunit/132927-mockgraphquery-test-library/source/#L245).

- [247](https://jonas-paprotka.de/ref/codeunit/132927-mockgraphquery-test-library/source/#L247) calls `AddGraphUserToGroup`
- [247](https://jonas-paprotka.de/ref/codeunit/132927-mockgraphquery-test-library/source/#L247) calls `GetDevicesGroupName`

## Source

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

JOP-AL, 2026-11-20.
