Teams - can automatic sign-in be disabled

DavidYorkshire 91 Reputation points
2020-07-29T11:36:36.163+00:00

We have several meeting room computers and shared laptops which have a single shared user account (and they are not domain joined). Is it possible to prevent Teams from signing in automatically? From testing, it appears that once the user clicks OK to the default options the first time they sign in, it will then cache the details and even if they sign out, it will remember the password as soon as an attempt to sign back in with that email address is attempted - which is obviously not suitable for a shared computer account.

Thanks

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
9,170 questions
{count} votes

8 answers

Sort by: Most helpful
  1. Søren Thestrup 36 Reputation points
    2021-10-06T10:20:53.73+00:00

    I made this batch script which solved the problem for us:

    taskkill /IM "Teams.exe" /F
    taskkill /IM "Microsoft.AAD.BrokerPlugin.exe" /F
    del C:\Users\%username%\AppData\Roaming\Microsoft\Teams\desktop-config.json /q
    rd C:\Users\%username%\AppData\Local\Packages\Microsoft.AAD.BrokerPlugin_cw5n1h2txyewy /s /q

    4 people found this answer helpful.

  2. Thomas 11 Reputation points
    2022-09-13T11:40:32.933+00:00

    Hi,

    I had the same Problem. Just add this Registry key:

    Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WorkplaceJoin

    DWORD: BlockAADWorkplaceJoin
    and assign value 1

    2 people found this answer helpful.
    0 comments No comments

  3. DavidYorkshire 91 Reputation points
    2020-08-04T14:41:12.78+00:00

    Thanks, but don't think those suggestions address the issue. Users will mostly just click the default when signing in, and that is to cache credentials, so we need a way to stop that from happening. MFA isn't going to work infor various reasons.

    The users shouldn't need to sign into anything else - the machines currently have Office 2013, this will probably be upgraded to 2019 (minus Outlook), but there shouldn't be any need to sign into this - the files to be opened will all be on a network share or copied from a USB stick. Teams will only be needed for vocie and video calls.

    The machines aren't domain joined so GPOs won't be possible either. I guess what I'm asking is whether there is a registry key or similar method which prevents Teams from caching credentials.

    Thanks

    1 person found this answer helpful.

  4. Alex Fainshtein 6 Reputation points
    2021-09-11T21:10:33.727+00:00
    1 person found this answer helpful.

  5. david vye 5 Reputation points
    2023-09-01T00:55:07.9933333+00:00

    This is incorrect. The user is NOT prompted to re-enter credentials after signing out. Must be cached somewhere, but how to disable? Clearly a security concern.

    1 person found this answer helpful.
    0 comments No comments