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: Oldest
  1. Anonymous
    2024-02-23T01:32:52+00:00

    I completed these steps and was able to successfully remove the old user from appearing in the sign-in screen; however, I am no longer able to sign into my current Teams work account.

    I believe there was something removed that may need to be added back in. I have uninstalled and reinstalled the New MS Teams application, but still receiving the "Something went wrong. [1001]" Error message.

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  2. Anonymous
    2024-02-27T11:21:19+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.

    Unfortnatelly this removes the Azure login accounts too, so I when restart the laptop it thinks it needs setting up again.

    Just removing %LocalAppData%\Microsoft\OneAuth does nothing, as Teams recreates this folder from other sources.

    The New Teams however does not show logged in accont on another user profile, so I believe its profile related and deleteing folders in LocalAppData is not going to acheivet this?

    Thanks Nick

    Was this answer helpful?

    5 people found this answer helpful.
    0 comments No comments
  3. Anonymous
    2024-02-27T11:43:59+00:00

    Hi, I assume Teams is storing the accounts in the same location as the azure login accounts. The accounts must be somewhere in those folders, so it may be worth looking inside those folders and only deleting specific sub folders/files to see if you can retain the Azure logins while removing the teams logins.

    If you have any success let me know.

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2024-02-27T16:36:49+00:00

    There are 2 methods of signing into Teams. When you sign in with an account it asks "Allow my oranization to manage my device". If this is ticked then it adds the account to Windows - Settings->. With this option you can select "Disconnect" on the user and next time Teams trys to sign in it will ask for password.

    BUT if the user unticks "Allow my oranization to manage my device" or clicks "No, sign to this app only", there is no option to remove the account from the Application that I can see. So it auto signs in everytime, and there is no account under Emails & Accounts to disconnect!

    I have checked the registry and the account is not stored in the registry. But reset the Windows Profile for that user does clear the accouts from Teams, but is a bit of a faff to do everytime time!

    Clearing the folders outlined above in %LocalAppData% is global to profiles on the laptop, and removes the primary account your wish to use. And it made windows on the laptop unstable, as searching and task bar seemed to stop functioning. I have checked %AppData%\ROAMING on folders TokenBroker but it starts off with 54 files on a clean working profile and after siging into another account in Teams goes up to 108 files! So god knows what to delete there! IdentityCache folder contain a folder called "1" on a fresh profile but nothing changes after that when signing into another account in Teams!

    So I really don;t know where to go from here! Is Microsoft going to fix this?

    Was this answer helpful?

    2 people found this answer helpful.
    0 comments No comments
  5. Anonymous
    2024-02-28T09:20:59+00:00

    Restarting the PC after deleting the folders fixed the instability for me, and I haven't had an issue since, I am on Windows 11. If we could find out which exact files are added with a new teams login we could reduce the number of files deleted and hopefully prevent the issues mentioned. When I contacted Microsoft about this, they said it was expected behavior.

    Was this answer helpful?

    0 comments No comments