New Teams - How do you remove users from the "Pick an account" / Login screen?

Anonymous
2023-12-01T12:57:48+00:00

While testing "New Teams" I have noticed that the "Pick an account" / Login screen shows the previous users that have logged in, even if they have clicked "sign out".

When clicking on those users, it also logs them in without asking for a password.

After reading other posts here, I have tried deleting the cache here: %LocalAppData%\Packages\MSTeams_8wekyb3d8bbwe

And also deleting the data in this folder: %LocalAppData%\Packages\Microsoft.AAD.BrokerPlugin_cw5n1h2txyewy

Doing this has stopped the accounts from being logged in without a password, but the accounts still appear on the "Pick an account" / Login screen.

They do not show in classic teams or any other application and there are no additional accounts in the "Access Work and School" windows setting page.

I have also tried to fully remove and reinstall Teams but the accounts are still visible.

Does anyone have a solution for this?

Thanks

EDIT:

I have found a possible solution:

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

Then restart the PC.

This will sign out all Microsoft products but does remove the users from the login list and removed their login details, meaning a password is required to login to Teams.

Microsoft Teams | Microsoft Teams for education | Sign up and Sign in | Switch between accounts

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

99 answers

Sort by: Most helpful
  1. Anonymous
    2024-01-24T12:34:10+00:00

    Same issues for me.

    This is the script ive written to do the job...

    there are plenty of parts in this thread which do not work as folder names etc are incorrect

    TASKKILL /IM MS-Teams.exe /F


    ren "%LocalAppData%\Local\Microsoft\OneAuth\accounts" "accounts_old"


    ren "%LocalAppData%\Local\Packages\MSTeams_8wekyb3d8bbwe" "MSTeams_8wekyb3d8bbwe_OLD" /f /q


    ren "%LocalAppData%\Packages\Microsoft.AAD.BrokerPlugin_cw5n1h2txyewy" "Microsoft.AAD.BrokerPlugin_OLD"


    ren "%LocalAppData%\Microsoft\OneAuth" "OneAuth_OLD"


    ren "%LocalAppData%\Microsoft\TokenBroker" "TokenBroker_OLD"


    ren "%LocalAppData%\Microsoft\IdentityCache" "IdentityCache_OLD"


    ren "%AppData%\Microsoft\Teams" "Teams_OLD"


    reg delete "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Office\Teams" /f


    shutdown -r -t 20

    Was this answer helpful?

    10+ people found this answer helpful.
    0 comments No comments
  2. Anonymous
    2023-12-06T15:25:35+00:00

    And also deleting the data in this folder: %LocalAppData%\Packages\Microsoft.AAD.BrokerPlugin_cw5n1h2txyewy

    Doing this has stopped the accounts from being logged in without a password, but the accounts still appear on the "Pick an account" / Login screen.

    Dealing with the same problem, and this is the closest thing I've seen to a solution so far. Here's to hoping it's patched! I can't see any way in which disallowng users from logging out could be considered expected functionality.

    Was this answer helpful?

    10 people found this answer helpful.
    0 comments No comments
  3. Anonymous
    2023-12-01T13:47:23+00:00

    Hello Ablyth,

    If the accounts showing is a work account then you may need to clear the credential manager.

    Go to Credential manager >> Windows credential >> Under generic credential, select and remove all office and teams related credential.

    Closes Teams and sign-in to see if the issue persists.

    Regards

    Was this answer helpful?

    10 people found this answer helpful.
    0 comments No comments
  4. Anonymous
    2024-01-18T08:29:36+00:00

    Only this worked for me. Thanks!

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

    Then restart the PC.

    Was this answer helpful?

    8 people found this answer helpful.
    0 comments No comments
  5. EmilyS_726 28,995 Reputation points Volunteer Moderator
    2023-12-01T22:54:53+00:00

    Hello,

    You can launch Registry Editor, and hold down Ctrl + F, do a search of the exact match for the email address, whenever you find it, you can delete it.

    Was this answer helpful?

    8 people found this answer helpful.
    0 comments No comments