Contacts in Microsoft Entra ID represent external individuals that your organization interacts with. Having identification like a thumbnail photo can help admins validate contacts and ensure accurate records. This can be accomplished by running the Get-MgUserContactPhoto cmdlet in Microsoft Graph PowerShell.
Before using the Get-MgUserContactPhoto cmdlet, ensure the following:
Install-Module Microsoft.Graph -Scope CurrentUser
ProfilePhoto.Read.All
Run the following commands in Microsoft Graph PowerShell to retrieve the thumbnail photo of a contact:
Get-MgUserContactPhoto
-ContactId <String>
-UserId <String>
[-ExpandProperty <String[]>]
[-Property <String[]>]
[-ResponseHeadersVariable <String>]
[-Headers <IDictionary>]
[-ProgressAction <ActionPreference>]
[<CommonParameters>]
The following table contains some parameters that can be used along with the Get-MgUserContactPhoto cmdlet to retrieve a contact's thumbnail photo.
| Parameters | Description |
|---|---|
| -ContactID | The unique identifier of a contact. |
| -UserID | The unique identifier of a user. |
| -ExpandProperty | Expands related entities. |
| -Property | Selects properties to be returned. |
| -ResponseHeadersVariable | Captures HTMP response headers into a variable. |
| -Headers | Optional headers that will be added to the request. |
ADManager Plus, an identity governance and administration solution with comprehensive Microsoft Entra ID management and reporting capabilities, simplifies complex admin tasks from a single, user-friendly console: