Forum Discussion
MS Teams logout issue
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
- awarwickSep 21, 2020Copper Contributor
ChristianBergstrom 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.
- ChristianBergstromSep 21, 2020Silver Contributor
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.
- awarwickSep 21, 2020Copper Contributor
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.