Skip to content

Instantly share code, notes, and snippets.

@MichaelDimmitt
Last active November 3, 2022 16:16
Show Gist options
  • Select an option

  • Save MichaelDimmitt/82185b112308283a22e5c9d0f2c7210b to your computer and use it in GitHub Desktop.

Select an option

Save MichaelDimmitt/82185b112308283a22e5c9d0f2c7210b to your computer and use it in GitHub Desktop.
fix teams by quitting and clearing cache

Problem: (MS teams Status Management)

The "Microsoft Teams Status" shows as away on teams when working from my desktop.

This is due to a weird caching issue! It may be the fact that the desktop application was the first device logged into. The phone being logged in after the desktop application tells teams this is the primary device. By clearing cache the desktop application becomes the primary device once again and regains control of status management.

Issue:

Screen Shot 2022-10-10 at 11 23 46 AM

Fix:

Screen Shot 2022-10-10 at 11 24 56 AM

Reason:

Teams was installed on desktop and mobile phone.

Causing status to change to away when mobile phone goes to sleep.
Desktop application in this circumstance is not able to change status back to available.

Resolution:

Clear cache for the desktop application and a fresh login on desktop sets status back to available.

Links: (describing the problem and solution)

Problem described at top of article along with a windows solution to the problem

How to find cache folder on mac

Remainder of Gist,
a script automates the process to fix the problem described by the links:

see file: mac-clear-teams-cache.sh

# quit teams
osascript -e 'tell application "Microsoft Teams" to quit';
# clear teams cache
rm -rf ~/Library/Application\ Support/Microsoft/Teams/ 2>/dev/null;
# re-open teams
osascript -e 'tell application "Microsoft Teams" to open' 2>/dev/null;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment