Get-EntraContactManager
Gets the manager of a contact.
Syntax
Get-EntraContactManager
-ObjectId <String>
[-Property <String[]>]
[<CommonParameters>]
Description
The Get-EntraContactManager
cmdlet gets the manager of a contact in Microsoft Entra ID.
Examples
Example 1: Get the manager of a contact
Connect-Entra -Scopes 'OrgContact.Read.All'
$Contact = Get-EntraContact -Top 1
Get-EntraContactManager -ObjectId $Contact.ObjectId
The example demonstrates how to retrieve the manager of a contact.
Parameters
-ObjectId
Specifies the ID of a contact in Microsoft Entra ID.
Type: | System.String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Property
Specifies properties to be returned
Type: | System.String[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Related Links
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