, 1 min read
Multi Tenancy MS-Teams
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:
50349 ThreadPoolForeg 27 0 /home/klm/.config/Microsoft/Microsoft Teams/Cache/index-dir/temp-index
50286 teams -1 2 /home/klm/.local/share/icons/default/cursors/n-resize
50286 teams -1 2 /home/klm/.local/share/icons/default/index.theme
50286 teams -1 2 /home/klm/.icons/default/cursors/n-resize
...
50286 teams -1 2 /tmp/.org.chromium.Chromium.ZTQmnY/icon-theme.cache
50286 teams 100 0 /tmp/.org.chromium.Chromium.ZTQmnY
50286 teams 100 0 /tmp/.org.chromium.Chromium.ZTQmnY/Microsoft Teams - Preview1_5.png
50286 ThreadPoolForeg 100 0 /tmp/.org.chromium.Chromium.ZTQmnY
50286 teams 100 0 /tmp/v8-compile-cache-1000/8.5.210.27-electron.0/zShomezSklm.LOCK
50286 teams 100 0 /tmp/v8-compile-cache-1000/8.5.210.27-electron.0/zShomezSklm.BLOB
50286 teams 100 0 /tmp/v8-compile-cache-1000/8.5.210.27-electron.0/zShomezSklm.MAP
50286 teams 100 0 /tmp/.org.chromium.Chromium.CvRDsY
...
50286 teams 104 0 /home/klm/.config/Microsoft/Microsoft Teams/desktop-config.json
50286 teams 104 0 /home/klm/.config/Microsoft/Microsoft Teams/desktop-config.json
50286 teams 104 0 /home/klm/.config/Microsoft/Microsoft Teams/storage.json
50286 teams 104 0 /proc/self/stat
...
See also Instant Messaging Client Pidgin and Skype / Lync. On general Microsoft behaviour see Microsoft Brought Down No-IP.org With Federal Court Order.