Yesterday, my account was added to an external team to another tenant and ever since I’m struggling to switch between tenants. This could of course be a coincidence and maybe something has changed  within the Microsoft Teams configuration. The new external account that I’m connecting to has MFA enabled. So there is an additional dialog appearing when I log in.

I’ve seen a few symptoms so far.Microsoft Teams - Stuck in an account and no way out? Microsoft Office 365, Microsoft Teams stuck

  1. You’re logged into teams and it is impossible to select a different account. Sometimes there is a message and sometimes there isn’t
  2. You start Microsoft Teams and a logging you in splash screen seems to be waiting forever

Also, I’m only having issues with the Windows App. The browser version seem to be working without any problem.

So how do you troubleshot these kind of issues?

I’ve started by looking at the logs and I found quite quickly the following errors:

[code lang=text]
2017-12-15T12:24:05.911Z Err Unhandled exception. TypeError: Cannot read property ‘profile’ of null, cause:
2017-12-15T12:24:05.910Z Inf AUTHSSO:ELEC: Function Queue – Dequeuing function for data:No data provided, current queue count:0
2017-12-15T12:24:05.909Z Inf AUTHSSO:ELEC: IPC correlationId:fda6977d-5f6b-49d1-88e5-d3946c5b5fdb call success. receiveEventsso-getCurrentUser
2017-12-15T12:24:05.909Z Inf AUTHSSO:ELEC: IPC correlationId:fda6977d-5f6b-49d1-88e5-d3946c5b5fdb call returned. receiveEventsso-getCurrentUser
2017-12-15T12:24:05.866Z Inf AUTHSSO:ELEC: IPC correlationId:fda6977d-5f6b-49d1-88e5-d3946c5b5fdb sending call. sendEventsso-getCurrentUser
2017-12-15T12:24:05.866Z Inf AUTHSSO:ELEC: Function Queue – Executing function for data:No data provided, queue count:1
2017-12-15T12:24:05.866Z Inf AUTHSSO:ELEC: Function Queue – Queueing function for data:No data provided, queue count:1
2017-12-15T12:24:05.865Z War AUTHSSO: Clearing the adal cache
2017-12-15T12:24:05.865Z War AUTHSSO: Unable to fetch updated user profile due to app state. Returning cached user
[/code]

So there is something wrong with my profile?

I’m first going to try to log out. Remember logging out is not just a matter of closing the app, you have to actually log out!Microsoft Teams - Stuck in an account and no way out? Microsoft Office 365, Microsoft Teams logoutThen as Microsoft teams restarts there will be a login window

 

Microsoft Teams - Stuck in an account and no way out? Microsoft Office 365, Microsoft Teams loginteams

 

And after I’ve gone though the login windows my Microsoft Teams starts ok. But I still can’t switch to the external account as Microsoft Teams defaults back to my company account.

Microsoft Teams - Stuck in an account and no way out? Microsoft Office 365, Microsoft Teams annoyingmen

then I tried connecting to Microsoft Teams through the browser again and I’m getting the following dialogue:

Microsoft Teams - Stuck in an account and no way out? Microsoft Office 365, Microsoft Teams mfa

lostprofiles

I’m completing the verification process and now I’m logged into the external team within my browser. It looks like external guest access with Multi Factor Authentication enabled isn’t supported in the Windows App for Microsoft Teams! When I attempt to switch to the external team in the app, I’m being redirected back to my usual tenant. So at least there is a way back to normal.

Although when I look in my chat history all the profile photos are gone. So I go for another logout and then all is back to normal.

 

 

Avatar for Pieter Veenstra

By Pieter Veenstra

Business Applications Microsoft MVP working as a Principal Architect at HybrIT Services Ltd. You can contact me using contact@sharepains.com

3 thoughts on “Microsoft Teams – Stuck in an account and no way out?”

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Discover more from SharePains by Microsoft MVP Pieter Veenstra

Subscribe now to keep reading and get access to the full archive.

Continue Reading