Quantcast
Channel: Azure Active Directory forum
Viewing all articles
Browse latest Browse all 16000

Sync o365 user photo with AzureADUserThumbnailPhoto

$
0
0

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.


Viewing all articles
Browse latest Browse all 16000

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>