> For the complete documentation index, see [llms.txt](https://docs.docontrol.io/docontrol-user-guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.docontrol.io/docontrol-user-guide/integrations/teams.md).

# Teams

Microsoft Teams is a central hub for workspace meetings, chat, videoconferencing, file storage, and application integration.

## Use cases

Integrating DoControl with Microsoft Teams enables you to detect and prevent unnecessary exposure and address these use cases:

* **Get full inventory visibility -** Discover external and internal users, including user metadata and roles
* **Trigger alerts based on file overexposure** - Get real-time event notifications for anomalous activity in Teams, such as external or public sharing of sensitive files
* **Remediate future data exposure** - Leverage automated security workflows to prevent future exposure, such as:&#x20;
  * Notify when external users are added to internal Teams channels
  * Prevent public sharing of sensitive files via private Teams chat
  * Notify on new public Teams channel
  * Notify on web access outside of trusted IPs
  * Notify when sensitive files are shared via Teams channel
  * Prevent sharing of sensitive OneDrive files via private chat in Teams

## Prerequisites&#x20;

To integrate Teams with DoControl, make sure you have fulfilled these prerequisites:

* Teams is a Business Basic Plan.
* You have [Microsoft 365](/docontrol-user-guide/integrations/microsoft-365.md) required permissions.
* Integrator must be one of the following:
  * [ ] Global Administrator
  * [ ] Privileged Role Administrator
* Before starting to integrate, you need to sign up with DoControl. Follow the onboarding steps in [Create first account](/docontrol-user-guide/getting-started/quick-start/set-up-docontrol-basics.md#create-first-account).
* You must activate the Microsoft 365 audit log. After turning on the audit log, it may take up to 12 hours for this action to take effect.

{% hint style="info" %}
See [Microsoft online help](https://docs.microsoft.com/en-us/microsoft-365/compliance/turn-audit-log-search-on-or-off?view=o365-worldwide) to turn on the Audit log.&#x20;
{% endhint %}

## Integrate Microsoft Teams with DoControl

![](https://3236294211-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MesrnyDMZGYg1V-tOBo%2Fuploads%2FfeqxqOyw1JC5XzRLBmND%2Fimage.png?alt=media\&token=35569bea-4d6a-4cbb-bfa6-25218decc7ea)

1. From the DoControl side menu, click **Integrations**.
2. Under **Teams** click **Connect**, then **Let's go.**
3. Select the **Write** scopes, and click **Next**.<br>

   <div align="left"><figure><img src="https://3236294211-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MesrnyDMZGYg1V-tOBo%2Fuploads%2FUmOTmBUO9TqchJSytzFs%2FConnect%20to%20Teams.png?alt=media&amp;token=34762a17-1b0c-490f-b525-20b38aa68543" alt="" width="563"><figcaption></figcaption></figure></div>
4. Select your Microsoft account.
5. Enter your Microsoft admin credentials, then click **Allow**. \
   You are returned to the DoControl **Integrations** page, and Teams is now integrated.


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.docontrol.io/docontrol-user-guide/integrations/teams.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
