> For the complete documentation index, see [llms.txt](https://docs.nexthink.com/platform/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.nexthink.com/platform/library-packs/collaboration-and-productivity-applications/workflow_-ms-teams-work-or-school-compliance/usage-guide-ms-teams-compliance.md).

# 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](/platform/library-packs/collaboration-and-productivity-applications/workflow_-ms-teams-work-or-school-compliance/configuration-guide-ms-teams-compliance.md) 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="/files/iBD6zFArwvG4XSzHaH6w" 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="/files/QOWeERqe9K8sR9uz3eBq" alt="" width="290"><figcaption></figcaption></figure>

***

RELATED TOPICS

* [Workflow: MS Teams compliance](/platform/library-packs/collaboration-and-productivity-applications/workflow_-ms-teams-work-or-school-compliance.md)
* [Configuration guide: MS Teams compliance](/platform/library-packs/collaboration-and-productivity-applications/workflow_-ms-teams-work-or-school-compliance/configuration-guide-ms-teams-compliance.md)
* [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)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.nexthink.com/platform/library-packs/collaboration-and-productivity-applications/workflow_-ms-teams-work-or-school-compliance/usage-guide-ms-teams-compliance.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
