MS Teams logout issue

%3CLINGO-SUB%20id%3D%22lingo-sub-1664651%22%20slang%3D%22en-US%22%3EMS%20Teams%20logout%20issue%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1664651%22%20slang%3D%22en-US%22%3E%3CP%3EI%20am%20trying%20to%20figure%20out%20an%20issue%20with%20MS%20Teams%2C%20and%20not%20having%20much%20luck%2C%20so%20I'm%20wondering%20if%20anyone%20else%20has%20encountered%20this%20before.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWe%20have%20a%20shared%20PC%20in%20a%20conference%20room%20that%20people%20will%20use%20to%20log%20into%20a%20shared%20user%20account%2C%20and%20then%20into%20their%20personal%20Teams%20account%20during%20their%20meeting.%20The%20problem%20is%20that%20some%20users'%20accounts%20seem%20to%20be%20cached%20on%20the%20PC%2C%20and%20all%20you%20need%20to%20do%20to%20log%20into%20their%20account%20is%20enter%20their%20email%2C%20no%20password%20required.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20tried%20the%20following%2C%20with%20no%20luck%20so%20far%3A%3C%2FP%3E%3CUL%3E%3CLI%3ECompletely%20cleared%20out%20credential%20manager%3C%2FLI%3E%3CLI%3EDeleted%20the%20contents%20of%20%25AppData%25%5CMicrosoft%5CTeams%3C%2FLI%3E%3CLI%3EDeleted%20the%20contents%20of%20HKLM%5CSoftware%5CMicrosoft%5COffice%5CTeams%3C%2FLI%3E%3CLI%3EUninstall%2Freinstall%20with%20Revo%20Uninstaller%20to%20also%20remove%20leftover%20registry%2Ffolder%20items%3C%2FLI%3E%3C%2FUL%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20finally%20reimaged%20the%20computer%20I%20was%20testing%20on%2C%20which%20of%20course%20fixed%20the%20issue%2C%20but%20there%20has%20to%20be%20a%20less%20invasive%20solution%20that%20I%20just%20haven't%20found%20yet.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20in%20advance.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1664651%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3Ecached%20login%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Elogout%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1667730%22%20slang%3D%22en-US%22%3ERe%3A%20MS%20Teams%20logout%20issue%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1667730%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F793024%22%20target%3D%22_blank%22%3E%40awarwick%3C%2FA%3E%26nbsp%3BHello%2C%20you%20can%20prevent%20the%20pre-population%20of%20the%20UPN%20with%20a%20registry%20key.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EComputer%5CHKEY_CURRENT_USER%5CSoftware%5CMicrosoft%5COffice%5CTeams%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3ESkipUpnPrefill(REG_DWORD)%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E0x00000001%20(1)%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoftteams%2Fsign-in-teams%23windows-users%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoftteams%2Fsign-in-teams%23windows-users%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1691787%22%20slang%3D%22en-US%22%3ERe%3A%20MS%20Teams%20logout%20issue%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1691787%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F551905%22%20target%3D%22_blank%22%3E%40bec064%3C%2FA%3E%26nbsp%3BThis%20does%20not%20actually%20solve%20the%20problem%20I%20mentioned%2C%20it%20only%20prevents%20Teams%20from%20auto-populating%20the%20username.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThrough%20a%20little%20bit%20more%20testing%2C%20I've%20narrowed%20it%20down%20a%20little%20farther.%26nbsp%3B%20It%20as%20long%20as%20I%20click%20on%20%22No%2C%20sign%20in%20to%20this%20app%20only%22%20on%20the%20attached%20image%2C%20my%20login%20is%20not%20remembered%20and%20I%20need%20to%20enter%20a%20password%20every%20time%20I%20log%20in.%26nbsp%3B%20However%2C%20as%20soon%20as%20I%20click%20OK%20in%20this%20window%2C%20whether%20the%20%22Allow%20my%20organization%20to%20manage%20my%20device%22%20checkbox%20is%20checked%20or%20not%2C%20my%20password%20is%20saved%20on%20this%20Teams%20login%20going%20forward%2C%20and%20there's%20no%20way%20to%20reverse%20it%20short%20of%20fully%20reimaging%20the%20computer%20(at%20least%20that%20I%20have%20found%20so%20far).%26nbsp%3B%20And%20until%20I%20reimage%20the%20PC%2C%20anyone%20can%20log%20into%20my%20Teams%20account%20using%20only%20my%20email%20address%2C%20no%20password%20required.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAlso%20note%20that%20this%20is%20related%20to%20our%20conference%20room%20PCs%2C%20which%20use%20a%20shared%20Windows%20login%2C%20so%20I'm%20guessing%20you%20might%20not%20have%20this%20issue%20without%20shared%20logins%2C%20I%20just%20haven't%20tested%20that%20yet%20since%20it%20wouldn't%20really%20help%20our%20specific%20scenario.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1691969%22%20slang%3D%22en-US%22%3ERe%3A%20MS%20Teams%20logout%20issue%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1691969%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F793024%22%20target%3D%22_blank%22%3E%40awarwick%3C%2FA%3E%26nbsp%3BHi%2C%20just%20to%20be%20clear%20as%20this%20hasn't%20been%20mentioned.%20Are%20these%20users%20manually%20signing%20out%20from%26nbsp%3B%20Teams%20as%20well%3F%20(top%20right%20corner).%20Teams%20uses%20modern%20authentication%20and%20the%20process%20and%20different%20scenarios%20such%20as%20MFA%2C%20domain-joined%20or%20not%20etc.%20are%20being%20described%20in%20the%20previous%20link%20I%20attached.%20Perhaps%20this%20is%20already%20taken%20into%20consideration%20but%20need%20to%20ask.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
New Contributor

I am trying to figure out an issue with MS Teams, and not having much luck, so I'm wondering if anyone else has encountered this before.

 

We have a shared PC in a conference room that people will use to log into a shared user account, and then into their personal Teams account during their meeting. The problem is that some users' accounts seem to be cached on the PC, and all you need to do to log into their account is enter their email, no password required.

 

I have tried the following, with no luck so far:

  • Completely cleared out credential manager
  • Deleted the contents of %AppData%\Microsoft\Teams
  • Deleted the contents of HKLM\Software\Microsoft\Office\Teams
  • Uninstall/reinstall with Revo Uninstaller to also remove leftover registry/folder items

 

I finally reimaged the computer I was testing on, which of course fixed the issue, but there has to be a less invasive solution that I just haven't found yet.

 

Thanks in advance.

5 Replies
Highlighted

@awarwick Hello, you can prevent the pre-population of the UPN with a registry key.

 

Computer\HKEY_CURRENT_USER\Software\Microsoft\Office\Teams
SkipUpnPrefill(REG_DWORD)
0x00000001 (1)

 

https://docs.microsoft.com/en-us/microsoftteams/sign-in-teams#windows-users

Highlighted

@bec064 This does not actually solve the problem I mentioned, it only prevents Teams from auto-populating the username.

 

Through a little bit more testing, I've narrowed it down a little farther.  It as long as I click on "No, sign in to this app only" on the attached image, my login is not remembered and I need to enter a password every time I log in.  However, as soon as I click OK in this window, whether the "Allow my organization to manage my device" checkbox is checked or not, my password is saved on this Teams login going forward, and there's no way to reverse it short of fully reimaging the computer (at least that I have found so far).  And until I reimage the PC, anyone can log into my Teams account using only my email address, no password required.

 

Also note that this is related to our conference room PCs, which use a shared Windows login, so I'm guessing you might not have this issue without shared logins, I just haven't tested that yet since it wouldn't really help our specific scenario.

Highlighted

@awarwick Hi, just to be clear as this hasn't been mentioned. Are these users manually signing out from  Teams as well? (top right corner). Teams uses modern authentication and the process and different scenarios such as MFA, domain-joined or not etc. are being described in the previous link I attached. Perhaps this is already taken into consideration but need to ask.

Highlighted

@bec064 

That's correct.  The users will use the logout option in the menu at the top left, but when they go to sign in again, they enter their username, click next, and then are signed in without a password.  This behaves the same way after a reboot as well.

 

The PC is domain joined, and we are starting to implement MFA, but this issue existed before any of our users were setup with MFA.

 

The link in your first response didn't really help.  It seems to describe how it's supposed to work, and by their description it sounds like using the logout function should cause Teams to prompt for a password again, but that's not what we are seeing here.  Where I am at so far, even after using the logout function, the PC will never ask for a password for that account again, until the PC is fully reimaged.

Highlighted
Do they have to use the desktop app? Whats the purpose of the shared computers? Looked at Teams Rooms? (on mobile so being brief).