Q: I am able to login to Teams on the browser, but received an error signing in to desktop app below:

Sorry, but we're having trouble signing you in. 

Message: AADSTS51004: The user account ________== does not exist in the 5ba5ef5e-3109-4e77-85bd-cfeb0d347e82 directory. To sign into this application, the account must be added to the directory.


A: Clear Teams cache and signing out Windows work and school account. 

  1. Fully exit the Microsoft Teams desktop client. To do this, either right click Teams from the Icon Tray and select ‘Quit’, or run Task Manager and fully kill the process.

  2. Go to File Explorer, and type in %appdata%\Microsoft\teams.

  3. Once in the directory, you’ll see a few of the following folders:

    • From ‘Application Cache’, go to Cache and delete any of the files in the Cache location. “%appdata%\Microsoft\teams\application cache\cache”
    • From ‘Blob_storage’, delete any files that are located in here if any. “%appdata%\Microsoft\teams\blob_storage”
    • Within ‘Cache’, delete all files “%appdata%\Microsoft\teams\Cache”
    • Within ‘databases’, delete all files “%appdata%\Microsoft\teams\databases”
    • Within ‘GPUCache’, delete all files “%appdata%\Microsoft\teams\GPUcache”
    • Within ‘IndexedDB’, delete the .db file “%appdata%\Microsoft\teams\IndexedDB”
    • Within ‘Local Storage’, delete all files “%appdata%\Microsoft\teams\Local Storage”
    • Lastly, from ‘tmp’, delete any file “%appdata%\Microsoft\teams\tmp”

  4. After the steps, disconnect the account. 



  5. At the end, restart the machine and try to sign in to Teams again.


  • No labels