'Profile Picture fails to sync in Teams and Sharepoint Online

bit of a strange one so I hope someone has some ideas.

We have updated several hundred user's profile photos through the Graph API and have also pushed the same photo to Active Directory (thumbnailPhoto). The photos for users are present on Azure AD, and also visible in 365 Admin Centre.

We are having issues getting these pictures to also replicate into teams; users with a new photos are still showing the generic profile photo. This is true for both the browser and app versions of teams. Sharepoint Online is also inconsistent in showing the updated photo. We assumed this would refresh over time but 24 hours in most users are still showing new photos present in 365/Azure but not in Teams or SPO.

Clearing cache in teams was also ineffective, is there another step we're missing here, or can push the changes through?

*also posted to Teams Tech community but thought it would be worth a try here.



Solution 1:[1]

To resolve profile picture sync issue in Teams, please check the below suggestions:

  • Completely exit from Microsoft Teams by selecting quit or use Task Manager to stop the process.
  • Please check whether you have cleared the cache in all the folders mentioned below.
  • Open file explorer, search %appdata%\Microsoft\teams.
  • Make sure to delete all the files with below format in those folders.
    • Application cache ->* %appdata%\Microsoft\teams\application cache\cache
    • Blob_storage -> * %appdata%\Microsoft\teams\blob_storage
    • Cache -> * %appdata%\Microsoft\teams\Cache
    • databases -> * %appdata%\Microsoft\teams\databases
    • GPUCache -> * %appdata%\Microsoft\teams\GPUcache
    • IndexedDB -> * %appdata%\Microsoft\teams\IndexedDB
    • Local Storage -> * %appdata%\Microsoft\teams\Local Storage
    • tmp -> * %appdata%\Microsoft\teams\tmp

After clearing all the cache, restart Microsoft Teams in your local desktop.

To resolve profile picture sync issue in SharePoint, please check the below suggestions:

  • Please check whether the users have their pictures in Exchange Online.

  • If no picture exists in Exchange Online, it won't appear in SharePoint Online too.

  • To upload the pictures to Exchange Online, make use of Set-UserPhoto PowerShell cmdlet.

  • To sync profile picture properly, please try below steps as a workaround:

    • Make sure you have Admin role.
    • Go to Tenant Admin -> User Profiles -> Under People Section -> Manage User Profiles
    • Select users -> Edit Profile -> Set Picture Exchange Sync State to 0 and save the profile.
    • Edit the profile again, select 'Picture' property and choose 'Remove' that removes the picture from SharePoint.
    • Edit the profile once more by setting Picture Exchange Sync State to 1
    • Please note that it would take a while to clear the cache and to be reset.

Please find these references if they are helpful: Ref1, Ref2

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 SrideviMachavarapu-MT