# Configuration guide: MS Teams compliance

{% hint style="warning" %}
The configuration options on this page are only accessible to [administrators](https://docs.nexthink.com/platform/user-guide/administration/account-management/roles#roles-administration).

Refer to the [Usage guide: Microsoft Teams compliance](https://docs.nexthink.com/platform/library-packs/collaboration-and-productivity-applications/workflow_-ms-teams-work-or-school-compliance/usage-guide-ms-teams-compliance) to use library content as a standard user.
{% endhint %}

## **Prerequisites** <a href="#documentation-pre-requisites" id="documentation-pre-requisites"></a>

This library pack contains content from the following required [expansion products](https://docs.nexthink.com/platform/overview/products):

* ​[Employee Engagement - Campaigns](https://docs.nexthink.com/platform/user-guide/campaigns)​
* ​[Flow - Workflows](https://docs.nexthink.com/platform/user-guide/workflows)

{% hint style="info" %}
Some of these products offer default access to their respective content and can still be used without [expansion products](https://docs.nexthink.com/platform/overview/products).

To learn more about default thresholds for expansion products, [visit the extended documentation](https://docs.nexthink.com/platform/library-packs/collaboration-and-productivity-applications/workflow_-ms-teams-work-or-school-compliance/broken-reference).
{% endhint %}

## **Included content and dependencies** <a href="#documentation-contentanddependencies" id="documentation-contentanddependencies"></a>

This library pack contains the following content and dependencies:

| Content type   | Name                                                      | Description                                                                                                       | Dependencies                  |
| -------------- | --------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------- |
| Remote actions | **Get Microsoft Teams client status**                     | Checks for installation, version, and other compliance data for the Teams Classic client.                         | Used directly in the workflow |
| Remote actions | **Clear Microsoft Teams Cache**                           | Clears Teams cache as part of troubleshooting steps.                                                              | Used directly in the workflow |
| Remote actions | **Reinstall Microsoft Teams Windows**                     | Reinstalls MS Teams client on Windows devices                                                                     | Used directly in the workflow |
| Remote actions | **Reinstall Microsoft Teams macOS**                       | Reinstalls MS Teams client on macOS devices                                                                       | Used directly in the workflow |
| Campaigns      | **Reinstall Microsoft Teams - Invoke**                    | Informs users before initiating Teams reinstallation.                                                             | Used by a remote action       |
| Campaigns      | **Reinstall Microsoft Teams - Completed**                 | Notifies users when Teams reinstallation completes.                                                               | Used by a remote action       |
| Campaigns      | **Close Microsoft Teams (short maintenance) - Invoke**    | Notifies users before closing Teams for cache clearance or GPU adjustments.                                       | Used by a remote action       |
| Campaigns      | **Close Microsoft Teams (short maintenance) - Completed** | Confirms Teams has been closed successfully.                                                                      | Used by a remote action       |
| Workflow       | **MS Teams compliance**                                   | This workflow is designed to automate Microsoft Teams compliance checks and remediations using Nexthink Infinity. |                               |

## **Configuring the MS Teams compliance pack** <a href="#documentation-configurationguide" id="documentation-configurationguide"></a>

{% hint style="info" %}
Adapt these suggested configuration steps to edit and customize content according to your organizational needs.
{% endhint %}

Follow these steps to install and configure content:

* Before configuration - Install library pack content from [Nexthink Library](https://docs.nexthink.com/platform/user-guide/nexthink-library)
* [Step 1 - Configure remote action(s)](#step-1-configure-remote-actions)
* [Step 2 - Edit campaigns](#documentation-step3-editcampaigns)
* [Step 3 – Schedule the workflow](#step-3-schedule-the-workflow)

### **Step 1 - Configure remote actions**

| Name                                          | Trigger schedule | Parameters to edit                                                                                                                                                                                 |
| --------------------------------------------- | ---------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Get Microsoft Teams Classic client status** | Workflow         | None                                                                                                                                                                                               |
| **Clear Microsoft Teams Cache**               | Workflow         | <p>Requires campaigns for user notifications:<br><code>\[CampaignId]</code>: Close Microsoft Teams - Invoke<br><code>\[OperationCompletedCampaignId]</code>: Close Microsoft Teams - Completed</p> |
| **Reinstall Microsoft Teams Windows**         | Workflow         | <p>Requires campaigns for user notifications:<br><code>\[CampaignId]:</code>reinstall\_msteams\_invoke<br><code>\[OperationCompletedCampaignId]</code>:reinstall\_msteams\_completed</p>           |
| **Reinstall Microsoft Teams macOS**           | Workflow         | <p>Requires campaigns for user notifications:<br><code>\[CampaignId]:</code>reinstall\_msteams\_invoke<br><code>\[OperationCompletedCampaignId]</code>:reinstall\_msteams\_completed</p>           |

### **Step 2 - Edit campaigns** <a href="#documentation-step3-editcampaigns" id="documentation-step3-editcampaigns"></a>

1. From the main menu, navigate to the **Campaigns** > [Manage Campaigns](https://docs.nexthink.com/platform/user-guide/campaigns/managing-campaigns) page.
2. Review and edit your campaigns. For each installed campaign:
   * Customize the sender name and image.
   * Review and adjust questions.
   * Publish the campaign when you are ready to use it.

Nexthink recommends the following configurations for these campaigns:

| Name                                                      | Trigger       | Priority   |
| --------------------------------------------------------- | ------------- | ---------- |
| **Reinstall Microsoft Teams - Invoke**                    | Remote action | Not urgent |
| **Reinstall Microsoft Teams - Completed**                 | Remote action | Not urgent |
| **Close Microsoft Teams (short maintenance) - Invoke**    | Remote action | Not urgent |
| **Close Microsoft Teams (short maintenance) - Completed** | Remote action | Not urgent |

### Step 3 – Schedule the workflow

This workflow was designed primarily to be run manually to ensure that client fixes can be submitted quickly. However, it can be configured to run on a schedule.

When configuring the scheduler we recommend the following settings as a baseline:

### **NQL:**

{% code title="Code" lineNumbers="true" %}

```
devices during past 7d
| where operating_system.platform == Windows
 and operating_system.name !in ["*server*"]
```

{% endcode %}

**Recurrence:** Weekly - select at least one day.

{% hint style="info" %}
**Please note:** Once all the prerequisites and workflow are installed and configured, you can use the built-in validation feature that runs every time you save the workflow.
{% endhint %}

***

RELATED TOPICS

* [](https://docs.nexthink.com/platform/library-packs/collaboration-and-productivity-applications/workflow_-ms-teams-work-or-school-compliance "mention")
* [usage-guide-ms-teams-compliance](https://docs.nexthink.com/platform/library-packs/collaboration-and-productivity-applications/workflow_-ms-teams-work-or-school-compliance/usage-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/managing-remote-actions)
