How to sync the users properties from AAD to MS Teams manually for all the users as an admin?

Bajracharya, Prabinesh 417 Reputation points
2023-04-18T12:09:18.7333333+00:00

We are facing an issue where users are not seeing the correct display name when they receive a notification from a user whose display name was changed 2 weeks ago in AAD. During our troubleshooting we found that cleaning MS Teams cache resolved the issue for me and for my colleague who manually cleaned the cache however all the users are still seeing the old display name. We cannot ask all our users to clean the MS Teams Cache manually so we have been waiting for the last 2 weeks for the cache to clean up on its owns and display the correct display name. Please advice what steps could we take in order to sync AAD and MS Teams for all the users. Also, we found this https://techcommunity.microsoft.com/t5/itops-talk-blog/powershell-basics-how-to-delete-microsoft-teams-cache-for-all/ba-p/1519118 when we were looking for a solution online. How would this script go to each users C:/ drive and delete cache for all the users? Doesn't this require a local admin access to all users machine to perform this sort of action? Is this approach the last resort or is there a better way to handle this?

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
10,828 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,993 questions
Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
3,546 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
23,150 questions
{count} votes

Accepted answer
  1. Alfredo Revilla - Upwork Top Talent | IAM SWE SWA 27,491 Reputation points
    2023-04-18T14:07:24.5866667+00:00

    Hello @Anonymous , in order to clear the teams cache in Windows without user invervention you need to fire a script on the context of the signed in user with something like Active Directory Group Policies or Intune Scripts Policies. If that's not available then you will have to ask each user to do so. A PowerShell script could help make it easier.

    Let us know if you need additional assistance. If the answer was helpful, please accept it and rate it so that others facing a similar issue can easily find a solution.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.