user photo issue

Glenn Maxwell 10,551 Reputation points
2022-04-06T09:51:25.82+00:00

Hi All

We are using exchange 2016 hybrid environment, we create users in onprem and migrate to cloud.
I want to remove users photo. i have used the below syntax.

Remove-UserPhoto "user1@Company portal .com"

On Sharepoint Admin Center.

Users Profiles-Manage User profiles-user1-Edit profile-
Personal Site: /personal/user1_mydomain_com
Picture: Remove

It has been 3 days still i am seeing the users photo. Do i also need to clear the AD attribute thumbnailPhoto from Exchange onprem. Experts guide me do i need to make any other changes.

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,023 questions
Microsoft Exchange Online Management
Microsoft Exchange Online Management
Microsoft Exchange Online: A Microsoft email and calendaring hosted service.Management: The act or process of organizing, handling, directing or controlling something.
4,308 questions
{count} votes

Accepted answer
  1. Joyce Shen - MSFT 16,646 Reputation points
    2022-04-07T05:49:21.84+00:00

    Hi

    Have you checked the result running below command, does this command return any result?

    Get-UserPhoto -Identity "user1@contoso.com"  
    

    You could take a look at the thumbnailPhoto attribute of the user in on-prem AD
    Open the Active Directory Users and Computers tool and make sure that Advanced Features options on the View menu is checked.
    Right click the user and select the properties, then select the attribute Editor tag, check if the thumbnailPhoto attribute shows any value. If you see <not set>, it means there is no photo configured.
    190798-image.png

    And where did you see the photo, could you please try clearing the browser cache or restarting your software, then verify the result again?


    If an Answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Glenn Maxwell 10,551 Reputation points
    2022-04-08T00:51:17.493+00:00

    Get-UserPhoto -Identity "user1@Company portal .com"

    Error on proxy command 'Get-UserPhoto -Identity:'CN=user1,OU=contoso.onmicrosoft.com,OU=Microsoft Exchange Hosted Organizations,DC=IJKPR98UA908,DC=PPP,DC=OUTLOOK,DC=COM'' to server SERVER01.jpoir.prod.outlook.com: Server version
    15. 20.5144.0000, Proxy method POIU:
    Cmdlet error with following error message:
    Microsoft.Exchange.Data.Storage.UserPhotoNotFoundException: There is no photo stored here.
    at Microsoft.Exchange.Configuration.Tasks.Task.ThrowError(Exception exception, ErrorCategory errorCategory, Object target, String helpUrl)
    at Microsoft.Exchange.Configuration.Tasks.Task.WriteError(Exception exception, ErrorCategory category, Object target, Boolean reThrow)
    at Microsoft.Exchange.Management.RecipientTasks.GetUserPhoto.ConvertDataObjectToPresentationObject(IConfigurable dataObject)
    at Microsoft.Exchange.Configuration.Tasks.GetRecipientObjectTask2.WriteResult(IConfigurable dataObject) at Microsoft.Exchange.Configuration.Tasks.GetTaskBase1.WriteResultT
    at Microsoft.Exchange.Configuration.Tasks.GetObjectWithIdentityTaskBase2.InternalProcessRecord() at Microsoft.Exchange.Configuration.Tasks.GetRecipientObjectTask2.InternalProcessRecord()
    at Microsoft.Exchange.Configuration.Tasks.Task.<ProcessRecord>b__104_1()
    at Microsoft.Exchange.Configuration.Tasks.Task.InvokeRetryableFunc(String funcName, Action func, Boolean terminatePipelineIfFailed)..
    + CategoryInfo : NotSpecified: (:) [Get-UserPhoto], CmdletProxyException
    + FullyQualifiedErrorId : [Server=OIUYDYDYD,RequestId=8iop0987-feas-42jk-832c-sdfes3456,TimeStamp=4/8/2022 12:46:01 AM] [FailureCategory=Cmdlet-CmdletProxyException]
    JIOPIUDF,Microsoft.Exchange.Management.RecipientTasks.GetUserPhoto
    + PSComputerName : outlook.office365.com