Hello!
I can set user photo using the Microsoft online web portal or powershell using the following commands:
$UserCredential=Get-Credential
$Session=New-PSSession-ConfigurationName Microsoft.Exchange-ConnectionUrihttps://outlook.office365.com/powershell-liveid/?proxyMethod=RPS-Credential$UserCredential-AuthenticationBasic-AllowRedirection
Import-PSSession$Session-AllowClobber
Set-UserPhotoUserMailbox@contoso.com-PictureData ([System.IO.File]::ReadAllBytes("D:\Temp\123.jpg"))}
All works good. But I can’t understand, why the AzureADUserThumbnailPhoto is not updated after set user photo using Microsoft online web portal or powershell?
I check set user photo using the following commands:
Get-UserPhotoUserMailbox# This command return information that photo is set
Get-AzureADUser-Filter"UserPrincipalName eq 'UserMailbox@contoso.com'"|ForEach-Object {Get-AzureADUserThumbnailPhoto-ObjectId$_.ObjectId}# This command return error, that photo is no.
Help me, please.