Original post is here: eklausmeier.goip.de
Task at hand: Work with multiple accounts using MS-Teams.
Currently MS-Teams does not allow to seamlessly switch between multiple accounts. For example, if you have a private MS-Teams account and a company account, you can not switch easily between those two. The Pidgin instant message client provided this functionality since decades. But MS-Teams from Microsoft does not offer this functionality.
One rather crude, but workable approach, is to switch the following directories on Linux:
$HOME/.config/teams
$HOME/.config/Microsoft
$HOME/.config/'Microsoft Teams - Preview'
If those directories are moved or deleted then you can start with a fresh account.
Needless to say, this will log you out. So you cannot keep two connections in parallel.
I learned about these directories by using /usr/share/bcc/tools/opensnoop
. This program is part of package bcc-tools
.
This program shows all files, which are opened by programs. In our case it showed:
150349 ThreadPoolForeg 27 0 /home/klm/.config/Microsoft/Microsoft Teams/Cache/index-dir/temp-index
250286 teams -1 2 /home/klm/.local/share/icons/default/cursors/n-resize
350286 teams -1 2 /home/klm/.local/share/icons/default/index.theme
450286 teams -1 2 /home/klm/.icons/default/cursors/n-resize
5...
650286 teams -1 2 /tmp/.org.chromium.Chromium.ZTQmnY/icon-theme.cache
750286 teams 100 0 /tmp/.org.chromium.Chromium.ZTQmnY
850286 teams 100 0 /tmp/.org.chromium.Chromium.ZTQmnY/Microsoft Teams - Preview1_5.png
950286 ThreadPoolForeg 100 0 /tmp/.org.chromium.Chromium.ZTQmnY
1050286 teams 100 0 /tmp/v8-compile-cache-1000/8.5.210.27-electron.0/zShomezSklm.LOCK
1150286 teams 100 0 /tmp/v8-compile-cache-1000/8.5.210.27-electron.0/zShomezSklm.BLOB
1250286 teams 100 0 /tmp/v8-compile-cache-1000/8.5.210.27-electron.0/zShomezSklm.MAP
1350286 teams 100 0 /tmp/.org.chromium.Chromium.CvRDsY
14...
1550286 teams 104 0 /home/klm/.config/Microsoft/Microsoft Teams/desktop-config.json
1650286 teams 104 0 /home/klm/.config/Microsoft/Microsoft Teams/desktop-config.json
1750286 teams 104 0 /home/klm/.config/Microsoft/Microsoft Teams/storage.json
1850286 teams 104 0 /proc/self/stat
19...
See also Instant Messaging Client Pidgin and Skype / Lync. On general Microsoft behaviour see Microsoft Brought Down No-IP.org With Federal Court Order.