Disable Microsoft Teams Auto Sign In To Domain Joined Account

In this post, read how to disable Microsoft Teams auto sign in to domain joined account on Windows so you can login to account you want.

Kapil Arya
11x Microsoft MVP · Admin
2 min read
Add as a preferred
source on Google

Microsoft Teams is one of the useful software to connect to your organisation colleagues. It can help you to collaborate with your fellow workers in the realtime. It can also help you to connect with your friends and family. Previously, we have shared you how Modern authentication works in Microsoft Teams. In this article, we will discuss an auto-logon issue with Microsoft Teams app for Windows.

Consider a scenario with following conditions as true:

When you launch the Microsoft Teams app, it automatically logs you into the domain account. If you want to login to non-domain account, then you have to manually log out of Microsoft Teams app and then login back to non-domain account. If your user name ends with .local or .corp, you may not face this problem.

So how to fix this issue and disable auto signing in Microsoft Teams to domain account? Well, according to Microsoft, this issue happens when single sign-on authentication scheme is not available and Teams have to use pre-fill login details with user principal name (UPN). If you are using different UPNs with on-premise and with AAD, then you can perform below mentioned registry manipulation to avoid this problem.

FIX: Disable Microsoft Teams Auto Sign In To Domain Joined Account

Registry Disclaimer: It is recommend to create a System Restore point first, before editing registry.

1. Run regedit command to open Registry Editor. 

2. In left pane of Registry Editor window, go to HKEY_CURRENT_USER\Software\Microsoft\Office\Teams.

3. Create a new registry DWORD (REG_DWORD) named SkipUpnPrefill.

Disable Microsoft Teams Auto Sign In To Domain Joined Account

4. Double click on that registry DWORD and set it to 1.

5. Close Registry Editor and reboot.

After restarting your system, Microsoft Teams won’t sign in to domain account automatically. Instead, you can login with profile you want to use.

That’s it!

Share this article
https://www.kapilarya.com/disable-microsoft-teams-auto-sign-in-to-domain-joined-account

Shareable URL

Article by

Kapil Arya
11x Microsoft MVP · Admin

Kapil holds Microsoft MVP title in Windows IT Pro expertise, 11-times in a row (2014-2025). He is 8-times Windows Insider MVP as well, and author of 'Windows Group Policy Troubleshooting' book. In 2015, Microsoft India accomplished him as 'Windows 10 Champion'. Being passionate Windows blogger, he loves to help others on fixing their system issues. Kapil has worked with official Microsoft Community Engagement Team (CET) on several community projects. You can subscribe him for news/updates and fixes for Windows.

Jakub Skopal

Hello Kapil, would you please know how do I do this when I run Google Chrome, Linux and teams only in browser?
sorry, I’m desperate.

Asim G

The procedure did not work on Windows 7. There was a registry key, LoggedInOnce that was set to 1. I tried deleting that as well but did not make any difference.

Leave a Comment

Your email address will not be published. Required fields are marked *