Adding user photos in Microsoft Entra ID makes it easier to recognize colleagues, improves teamwork, and collaboration across Microsoft 365 apps. It also helps IT teams manage users and enhances security. Additionally, ADManager Plus, an IGA solution with Microsoft 365 management and reporting capabilities allows admins to set up user photos instantly with its smart templates. While both ADManager Plus and Graph PowerShell can be used to update users' photos, ADManager Plus stands apart with its intuitive and script-free interface, allowing administrators to effortlessly update and manage user photos in bulk without using scripts. Its user-friendly design eliminates the need for complex scripting, making it the ideal choice for organizations seeking a streamlined and efficient solution.
Modify the template to add or remove fields as needed
Holds attributes that you can easily drag and drop.
Click the Edit icon to make this field mandatory.
Before using the Set-MgUserPhotoContent cmdlet, ensure the following:
Install-Module Microsoft.Graph -Scope CurrentUser
Connect-MgGraph -Scopes "User.ReadWrite.All"
The Set-MgUserPhotoContent cmdlet can be used in Microsoft Graph PowerShell to configure Microsoft Entra ID users' photos. Here's the syntax:
Set-MgUserPhotoContent
-UserId <String>
[-Data <Stream>]
[-ResponseHeadersVariable <String>]
-InFile <String>
[-ContentType <String>]
[-Headers <IDictionary>]
[-PassThru]
[-ProgressAction <ActionPreference>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Set-MgUserPhotoContent -UserId user@yourdomain.com -InFile C:\Photos\userphoto.jpg
The following are some essential parameters that can be used along with the Set-MgUserPhotoContent command:
| Parameters | Description |
|---|---|
| -UserId | This parameter is used to specify the UserPrincipalName or Object ID of the user whose photo you want to update. |
| -InFile | This parameter defines the local file path of the image to be uploaded. |
| -Confirm | This parameter helps prevent accidental changes by prompting for confirmation before executing the command |
| -WhatIf | This parameter simulates the command without executing it. |
In addition to managing users, ADManager Plus also provides comprehensive management capabilities for various Microsoft Entra ID (formerly Azure AD) entities, including contacts, groups, and mailboxes. It also offers a wide range of Micrsosft Entra ID reports that provide valuable insights into Entra ID objects and activities. These reports help administrators track user logins, group memberships, inactive accounts, license assignments, and more.