---
title: "Codeunit 9012 Azure AD Graph"
author: "Jonas Paprotka"
url: https://jonas-paprotka.de/ref/codeunit/9012-azure-ad-graph/
type: codeunit
id: 9012
name: "Azure AD Graph"
app: "System Application"
namespace: System.Azure.Identity
versions: "17-28"
build: 28.5.54151.54365
source: "https://jonas-paprotka.de/ref/codeunit/9012-azure-ad-graph/source/24/ https://jonas-paprotka.de/ref/codeunit/9012-azure-ad-graph/source/25/ https://jonas-paprotka.de/ref/codeunit/9012-azure-ad-graph/source/26/ https://jonas-paprotka.de/ref/codeunit/9012-azure-ad-graph/source/27/ https://jonas-paprotka.de/ref/codeunit/9012-azure-ad-graph/source/28/ https://jonas-paprotka.de/ref/codeunit/9012-azure-ad-graph/source/29/"
checked: 2026-09-20
subject: "Microsoft Dynamics 365 Business Central"
license: "Content © 2026 Jonas Paprotka. Quote freely with attribution and a link."
---

# Codeunit 9012 Azure AD Graph

Jonas Paprotka, https://jonas-paprotka.de/ref/codeunit/9012-azure-ad-graph/

| | |
| --- | --- |
| App | System Application |
| Namespace | System.Azure.Identity |
| Versions | 17-28 |
| Source file | Azure AD Graph/src/AzureADGraph.Codeunit.al |

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| GetUser | (Text, var DotNet UserInfo) | - | public | 17-28 | - | - |
| GetCurrentUser | (var DotNet UserInfo) | - | public | 17-28 | - | - |
| GetUserByAuthorizationEmail | (Text, var DotNet UserInfo) | - | public | 17-28 | - | - |
| GetUserByObjectId | (Text, var DotNet UserInfo) | - | public | 17-28 | - | - |
| TryGetUserByObjectId | (Text, var DotNet UserInfo) | Boolean | public | 17-28 | - | - |
| GetUserAssignedPlans | (DotNet UserInfo, var DotNet GenericList1) | - | public | 17-28 | - | - |
| GetUserRoles | (DotNet UserInfo, var DotNet GenericIEnumerable1) | - | public | 17-28 | - | - |
| GetDirectorySubscribedSkus | (var DotNet GenericIEnumerable1) | - | public | 17-28 | - | - |
| GetDirectoryRoles | (var DotNet GenericIEnumerable1) | - | public | 17-28 | - | - |
| GetTenantDetail | (var DotNet TenantInfo) | - | public | 17-28 | - | - |
| GetUsersPage | (Integer, var DotNet UserInfoPage) | - | public | 17-28 | - | - |
| SetTestInProgress | (Boolean) | - | public | 17-20 | - | - |
| IsM365CollaborationEnabled | () | Boolean | public | 21-28 | - | - |
| GetEnvironmentDirectoryGroup | () | Text | public | 21-25 | Pending 22.0 | Renamed to GetEnvironmentSecurityGroupId() |
| GetLicensedUsersPage | (DotNet StringArray, Integer, var DotNet UserInfoPage) | - | public | 21-28 | - | - |
| GetGroupMembers | (Text, var DotNet IEnumerable) | - | public | 21-28 | - | - |
| GetMembersForGroupId | (Text, var DotNet IEnumerable) | - | public | 21 | - | - |
| IsGroupMember | (Text, DotNet UserInfo) | Boolean | public | 21-28 | - | - |
| IsMemberOfGroupWithId | (Text, DotNet UserInfo) | Boolean | public | 21-28 | - | - |
| IsGraphUserAccountEnabled | (Text, var Boolean) | Boolean | public | 21-28 | - | - |
| GetEnvironmentSecurityGroupId | () | Text | public | 22-28 | - | - |
| IsEnvironmentSecurityGroupDefined | () | Boolean | public | 22-28 | - | - |
| GetMembersPageForGroupId | (Text, Integer, var DotNet UserInfoPage) | - | public | 22-28 | - | - |
| GetGroups | () | Dictionary | public | 22-28 | - | - |
| GetMemberIdsPageForGroupId | (Text, Integer, var DotNet UserIdsPage) | - | public | 23-28 | - | - |
| GetGroupName | (Text) | Text | public | 23-28 | - | - |
| GetFirstGroupIdWithName | (Text) | Text | public | 23-28 | - | - |

## Events

| Kind | Name | Parameters | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| Integration event | OnInitialize | (var DotNet GraphQuery) | 17-20 | - | - |

## Source

Symbols: Microsoft.SystemApplication.symbols.63ca2fa4-4f03-4f2b-a480-172fef340d3f, https://dynamicssmb2.pkgs.visualstudio.com/DynamicsBCPublicFeeds/_packaging/MSSymbols/nuget/v3/index.json, highest build per major on 2026-09-20.
AL source 24: https://github.com/microsoft/BCApps, MIT, releases/24.x at fe14d3e6db00d28df3a69c7bba830813d70794e2.
AL source 25: https://github.com/microsoft/BCApps, MIT, releases/25.x at 68d52c129129c83b2e396a473aaa5b2ce61d2eed.
AL source 26: https://github.com/microsoft/BCApps, MIT, releases/26.x at 78c4acf0d64a8eee157ea80164fa8fc2acffc9eb.
AL source 27: https://github.com/microsoft/BCApps, MIT, releases/27.x at 1749020b4c9445a43e4f7f540e89b7fa76ec25fd.
AL source 28: https://github.com/microsoft/BCApps, MIT, releases/28.x at 740f59156b249f8ed7cba2e28423f03ae7b07233.
AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at a66254c3b8b5bb1cea290dc8f9d097aec4381153.

Jonas Paprotka, 2026-09-20.
