Add-AzureADMSAdministrativeUnitMember
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
- Global 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
- Global Administrator
- Groups Administrator
View more details on permissions.
Property Mapping
Azure AD Name | Microsoft Graph Name |
---|---|
Id | AdministrativeUnitId |
RefObjectId | OdataId |
Σχόλια
https://aka.ms/ContentUserFeedback.
Σύντομα διαθέσιμα: Καθ' όλη τη διάρκεια του 2024 θα καταργήσουμε σταδιακά τα ζητήματα GitHub ως μηχανισμό ανάδρασης για το περιεχόμενο και θα το αντικαταστήσουμε με ένα νέο σύστημα ανάδρασης. Για περισσότερες πληροφορίες, ανατρέξτε στο θέμα:Υποβολή και προβολή σχολίων για