Get-AzureADContactMembership
This article provides migration details from Get-AzureADContactMembership command to Microsoft Graph PowerShell.
Summary
- Azure AD Command: Get-AzureADContactMembership
- Azure AD Module: AzureAD
- Microsoft Graph Command: Get-MgContactMemberOf (Community Examples)
- Graph Module: Microsoft.Graph.Identity.DirectoryManagement
- Graph Endpoint: GET /contacts/{orgContact-id}/memberOf | /contacts/{orgContact-id}/memberOf/{directoryObject-id}
Permissions
Permission type | Permissions (from least to most privileged) |
---|---|
Delegated (work or school account) | OrgContact.Read.All and Group.Read.All, Directory.Read.All |
Delegated (personal Microsoft account) | Not supported. |
Application | OrgContact.Read.All and Group.Read.All, Directory.Read.All |
Property Mapping
Azure AD Name | Microsoft Graph Name |
---|---|
ObjectId | OrgContactId |
All | All |
Top | Top |
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for