Forum Discussion

Tomi Aaltonen's avatar
Tomi Aaltonen
Copper Contributor
May 07, 2024

How to remove cached guest account data from teams

Hi.

 

We have a problem with cached external organization guest account data with some of our users. The problem is that users from an external organization have been using our teams with guest accounts and everything was fine until this external org had to start a new tenant while continuing to use their old domain suffix.

 

Obviously their old guest accounts stopped working in our tenant after they switched in to their new tenant, but the problem is that even after we have deleted their old guest accounts from our Entra ID some of our users are not able to invite them as new users. The old guest profiles of this external org are cached somewhere in our users teams and when they try to invite users from this external organization again, the teams client (Desktop and Web) just digs up the old guest account info from somewhere and the invitations fail. If some one who has not been working with the users from this external org before are able to invite users from that org.

 

We have tried to clear the teams cahce (both the classic and the new) but that doesn't clear those old guest account infos from the users teams. Of course we could invite them from the Teams management portal etc, but there are lots of them and the best solution would be that we get that cached guest account info cleared from the users that are affected by this, becaouse they are the ones who know who to invite and in to which team.

 

-Tomi Aaltonen

 

 

 

  • LeonPavesic's avatar
    LeonPavesic
    Silver Contributor

    Hello Tomi Aaltonen,

    to remove these entries from the cache, the following folders should be deleted:

    %LocalAppData%\Packages\MSTeams_8wekyb3d8bbwe
    %LocalAppData%\Packages\Microsoft.AAD.BrokerPlugin_cw5n1h2txyewy
    %LocalAppData%\Microsoft\OneAuth
    %LocalAppData%\Microsoft\TokenBroker
    %LocalAppData%\Microsoft\IdentityCache



    Please click Mark as Best Response & Like if my post helped you to solve your issue.
    This will help others to find the correct solution easily. It also closes the item.


    If the post was useful in other ways, please consider giving it Like.


    Kindest regards,


    Leon Pavesic
    (LinkedIn)
    (Twitter)

    • tomizoso's avatar
      tomizoso
      Copper Contributor

      LeonPavesic 

       

      We have the exact same problem. Each time I will delete the guest user from our Entra ID and then from deleted users. And still Teams will dig up the old address from some where. Deleting Teams local cache makes absolutely no difference. Not even if I logon to a computer I have never logged in before. Not Incognito/private mode with web browser. Nothing.

       

      Sometimes it will take a few minutes and it stops suggesting the old address. In other cases it will take days. This is extremely frustrating. Is there absolutely no way around this? We need to just keep trying to enter the Guest until Teams randomly stops suggesting the old address.

       

      I would welcome any solution for this issue. Powershell, etc.

       

       

Resources