# Usage guide: MS Teams compliance

{% hint style="warning" %}
This page outlines various ways to use the pack, including use case examples.

Administrators can refer to the [Configuration guide](https://docs.nexthink.com/platform/library-packs/collaboration-and-productivity-applications/workflow_-ms-teams-work-or-school-compliance/configuration-guide-ms-teams-compliance) to set up and customize the installed content.
{% endhint %}

The **MS Teams compliance** library pack enables EUC teams to:

* Ensure **Microsoft Teams** is installed, running the latest version, and properly configured.
* Automatically remediate common L1 compliance issues such as missing installations or outdated versions.
* Minimize manual effort by leveraging automated remediation and device rechecking.
* Reduce manual investigation time for L1 support teams.

## Library pack uses

{% hint style="info" %}
Jump to [Use cases](#use-cases) on this page to see relevant scenario applications.
{% endhint %}

Use the library pack content for the following purposes.

### Ensuring Microsoft Teams compliance across devices

This library pack provides a structured workflow that checks Microsoft Teams compliance across a group of devices. Using the Get Microsoft Teams Work or School client status remote action, it identifies if:

* Teams is installed.
* Teams was updated within the past month.
* A cache cleanup is required for performance.

Based on this, the workflow automatically remediates issues by:

* Running the **Clear Microsoft Teams work or school cache** remote action if Teams is up to date.
* Reinstalling Teams using OS-specific remote actions if Teams is missing or outdated.
* Confirming fixes by rechecking Teams installation status after a 5-minute pause.
* Logging an ITSM ticket via API if the issue persists.

## Predefined workflow structure and steps <a href="#workflow-structure" id="workflow-structure"></a>

The **MS Teams compliance** workflow is structured in these main steps:

1. [The workflow checks for installation and version status of the MS Teams classic client](#the-workflow-checks-for-installation-and-version-status-of-the-ms-teams-classic-client).
2. [If the client is missing or outdated, the workflow will initiate its reinstallation, supporting both the Windows and macOS platforms.](#if-the-client-is-missing-or-outdated-the-workflow-will-initiate-its-reinstallation-supporting-both-t)
3. [The cache data is removed with the help of the 'Clear Microsoft Teams Classic' remote action.](#the-corrupted-or-outdated-cache-data-is-removed-with-the-help-of-the-clear-microsoft-teams-classic-r)

#### The workflow checks for the installation and version status of the MS Teams client

At the start of this workflow, there is a "Get Teams client status" thinklet configured to automate the retrieval of Microsoft Teams client status information using a remote action.

* If the client is not installed or is outdated, the workflow will initiate its reinstallation, supporting both the Windows and macOS platforms.
* Otherwise, the workflow moves on to the next step.

#### If the client is missing or outdated, the workflow will initiate its reinstallation, supporting both the Windows and macOS platforms

First, the workflow determines which platform the device is running. Then, it initiates a platform-specific remote action to reinstall the client.\
Once complete, the workflow reruns the "Get Microsoft Teams Work or School client status" remote action to verify that the client has been reinstalled successfully. If successful, the workflow terminates with the appropriate status. Otherwise, it creates a ticket indicating that the update failed.

<figure><img src="https://268444917-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxJSUDk9NTtCHYPG5EWs3%2Fuploads%2Fgit-blob-0fdd22d01df905a0be45ef16d7c56e2e7403bc28%2Fimage.png?alt=media" alt="" width="375"><figcaption></figcaption></figure>

#### The cache data is removed with the help of the 'Clear Microsoft Teams Classic' remote action

In the next step, the workflow uses the "Clear Microsoft Teams cache" remote action to clear the cache.

<figure><img src="https://268444917-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxJSUDk9NTtCHYPG5EWs3%2Fuploads%2Fgit-blob-b3168d4358fe3c552f4bdac9c8de90c27c2f581a%2Fimage.png?alt=media" alt="" width="290"><figcaption></figcaption></figure>

***

RELATED TOPICS

* [](https://docs.nexthink.com/platform/library-packs/collaboration-and-productivity-applications/workflow_-ms-teams-work-or-school-compliance "mention")
* [configuration-guide-ms-teams-compliance](https://docs.nexthink.com/platform/library-packs/collaboration-and-productivity-applications/workflow_-ms-teams-work-or-school-compliance/configuration-guide-ms-teams-compliance "mention")
* [Manage Workflows](https://docs.nexthink.com/platform/user-guide/workflows/managing-workflows)
* [Manage Campaigns](https://docs.nexthink.com/platform/user-guide/campaigns/managing-campaigns)
* [Manage Remote Actions](https://docs.nexthink.com/platform/user-guide/remote-actions/getting-started-with-remote-actions)
