Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This article provides migration details from Add-AzureADMSAdministrativeUnitMember command to Microsoft Graph PowerShell.
Summary
- Azure AD Command: Add-AzureADMSAdministrativeUnitMember
- Azure AD Module: AzureAD
- Microsoft Graph Command: New-MgDirectoryAdministrativeUnitMemberByRef (Community Examples)
- Graph Module: Microsoft.Graph.Identity.DirectoryManagement
- Graph Endpoint: POST /directory/administrativeUnits/{administrativeUnit-id}/members/$ref
Permissions
Permission type | Permissions (from least to most privileged) |
---|---|
Delegated (work or school account) | AdministrativeUnit.ReadWrite.All |
Delegated (personal Microsoft account) | Not supported. |
Application | AdministrativeUnit.ReadWrite.All |
To add a user, group, or device to an administrative unit, the calling principal must be assigned one of the following Microsoft Entra roles:
- Privileged Role Administrator
Permissions to create a new group
Permission type | Permissions (from least to most privileged) |
---|---|
Delegated (work or school account) | Group.ReadWrite.All, Directory.ReadWrite.All, Directory.AccessAsUser.All |
Delegated (personal Microsoft account) | Not supported. |
Application | Group.Create, Group.ReadWrite.All, Directory.ReadWrite.All |
To create a new group in an administrative unit, the calling principal must be assigned one of the following Microsoft Entra roles:
- Privileged Role Administrator
- Groups Administrator
View more details on permissions.
Property Mapping
Azure AD Name | Microsoft Graph Name |
---|---|
Id | AdministrativeUnitId |
RefObjectId | OdataId |