Forum Discussion
Change Teams default login
- Oct 09, 2020
DaGbyte Hi David, would it be an alternative to prevent the automatic population of the UPN? If applicable you can use this reg key.
Turn off pre-population of the UPN:
Computer\HKEY_CURRENT_USER\Software\Microsoft\Office\Teams
SkipUpnPrefill (REG_DWORD)
0x00000001 (1)
DaGbyte Hi David, would it be an alternative to prevent the automatic population of the UPN? If applicable you can use this reg key.
Turn off pre-population of the UPN:
Computer\HKEY_CURRENT_USER\Software\Microsoft\Office\Teams
SkipUpnPrefill (REG_DWORD)
0x00000001 (1)
- BhargavPMay 31, 2021Copper ContributorHi Christian,
I applied the solution you provided, However, I still get the prompt to choose from 2 x corp accounts and 1 x personal account. - Haith1895Feb 04, 2021Copper Contributor
ChristianBergstrom i do have the same issue, how do i access this location/option
Computer\HKEY_CURRENT_USER\Software\Microsoft\Office\Teams
SkipUpnPrefill (REG_DWORD)
0x00000001 (1)- ChristianBergstromFeb 04, 2021Silver Contributor
Haith1895 Hello, How to open Registry Editor in Windows 10 (microsoft.com)
If you're not familiar with the registry I recommend that someone assist with the setting.
- Haith1895Feb 04, 2021Copper Contributor
ChristianBergstrom thanks for the warning.... I modified it, yet it keeps switching back to the business account... what i want as a default is the personal account tho
- Jackie BehrbomDec 09, 2020Copper Contributor
Thanks for this! Do you happen to know if there is a regkey to make it use the user's e-mail address by default instead of UPN? We also have non-routable UPNs so stopping it from pre-populating the UPN is definitely helpful. I'm just wishing there was a way I could pre-populate the e-mail though.
- ChristianBergstromDec 10, 2020Silver ContributorHi, I am afraid not. But they do recommend that upn and primary smtp match. Teams will always default to the domain-joined account if one sign out och restart.
You can read a bit more about upn here https://docs.microsoft.com/en-us/azure/active-directory/hybrid/howto-troubleshoot-upn-changes
And if you haven’t seen these
https://docs.microsoft.com/en-us/microsoftteams/sign-in-teams
https://docs.microsoft.com/en-us/microsoftteams/scripts/powershell-script-teams-reset-autostart
- DaGbyteOct 09, 2020Copper Contributor
ChristianBergstrom - That seems to have done the trick! I do want to point out that the HomeUserUpn value IS set correctly to my Company B address. When I added that key you suggested, it just took me right into Teams.
- ChristianBergstromOct 09, 2020Silver Contributor
DaGbyte Glad to hear it solved the issue! It would be interesting to hear what Andy asked about though. Did you try to sign out and back in manually from the Teams client, and was it still trying with the wrong UPN then?
By the way, this is good one I just want to attach while we are talking about these settings.
https://docs.microsoft.com/en-us/microsoftteams/scripts/powershell-script-teams-reset-autostart
- DaGbyteOct 16, 2020Copper Contributor