Hey world!
I actually found the answer to my question (see the bottom of this post) along the way, but figured to post this anyway, in case it helps anyone.
I'd like to know how I permanently remove one of these:
Sometimes I'm invited to join a company's Teams infrastructure to work on a project, but after a while it's no longer needed. However, there doesn't seem to be any obvious way to remove these. Furthermore, in both my online Microsoft account settings (https://account.microsoft.com/?ref=MeControl) and in my local 'Settings > Accounts > Access work or school' there isn't the slightest trace of these companies.
An important aspect of this setup is that I'm using two accounts:
- a personal account, let's call it ******@personal.com, and
- a corporate account managed by a customer, let's call that one ******@customer.com
The ******@personal.com is currently connected to two external companies, as displayed in the screenshot above:
- Fla***
- M***
They each have their 2FA set up in Microsoft Authenticator, and are managed by the respective companies.
I can easily switch between all of these. ******@customer.com is the one I use the most. I occasionally need M***, I never use ******@personal.com (aside from using it as a gateway to other accounts), and Fla*** needs to be removed.
I figured I just had to sign out, like so:
But then all kinds of weird stuff starts to happen. This is where it becomes clear that Microsoft creates things that are extremely buggy. Please, prove me wrong!
After signing out, my entire personal account is signed out. But! Then Teams sits in the system tray, seemingly online, as expected on ******@customer.com, until I open it:
As the screenshot shows: when opening Teams, it's seemingly logged out of everything, asking to pick an account (showing only ******@personal.com), but the system tray icon and its right-click menu still operate as if I'm online.
But wait, the madness doesn't end there! When I sign in again, M*** is removed, and Fla*** is still there!
Crazy enough? Not just yet. When I repeat the process of signing out and in again, M*** is back, and Fla*** is in there twice!
Suffice to say, this is obviously terrible programming. The system also doesn't always ask for credentials or 2FA verification when signing in again after signing out, which indicates there are some serious security flaws (or I signed back in fast enough?). Signing out of all accounts, and signing back in, returns things to normal.
Then I started exploring the application settings, and noticed an entry called 'Accounts and orgs'. There I finally found an option to 'Leave Org':
Fla*** is still visible in Teams, so I'm assuming it just needs some time to process the removal request.
Also, when trying to toggle a removed account, the switch just doesn't respond:
Anyway, I hope it helps someone, and perhaps Microsoft could fix these bugs. Yes, I've sent feedback with logs.
Have an amazing day!
Timmy