User photos aren't synced from the on-premises environment to Exchange Online in a hybrid deployment
Note The thumbnailPhoto attribute can store a user photo as large as 100 kilobytes (KB).
- The thumbnailPhoto attribute is synced only one time between Azure AD and Exchange Online. Any later changes to the attribute from the on-premises environment are not synced to the Exchange Online mailbox.
- Exchange Online accepts only a photo that's no larger than 10 KB from Azure AD.
Use the Set-UserPhoto cmdlet (for admins)To use the Set-UserPhoto cmdlet to change a user's photo, follow these steps:
- Connect to Exchange Online by using remote PowerShell. To do this, follow these steps:
Important To use the Set-UserPhoto cmdlet to its full size capabilities, you have to change the connection URI by appending ?proxyMethod=RPS to the ConnectionUri parameter.
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/?proxyMethod=RPS -Credential (Get-Credential) -Authentication Basic -AllowRedirection
Import-PSSession $Session -AllowClobber -WarningAction SilentlyContinue -ErrorAction SilentlyContinue
- Run the Set-UserPhoto command to change the user photo. For more information, see Set-UserPhoto.
Use Outlook on the webFor more information about how to change a user photo in Outlook on the web, see Update my photo and account information in Outlook Web App.
The remote server returned an error: (413) Request Entity Too Large...
+ CategoryInfo : NotSpecified: (:) [Set-UserPhoto], CmdletProxyException
+ FullyQualifiedErrorId : Microsoft.Exchange.Configuration.CmdletProxyException,Microsoft.Exchange.Management.RecipientTasks.SetUserPhoto
+ PSComputerName : outlook.office365.com
Article ID: 3062745 - Last Review: 03/11/2016 02:29:00 - Revision: 4.0
- o365022013 o365 o365e o365m o365a hybrid KB3062745