# Microsoft Teams

{% hint style="info" %}
Installing P0 on Microsoft Teams takes about 5 minutes.
{% endhint %}

### Before you begin

Make sure you are either "Privileged Role Administrator" or "Global Administrator" for your Microsoft Entra ID directory, or ask a user with one of these roles to install the P0 Microsoft Teams integration.

### Adding Microsoft Teams

1. On [p0.app](https://p0.app), navigate to "Integrations", then select **Microsoft Teams**.

<figure><img src="https://3783273641-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSQNwGQz62W737pY0FzVb%2Fuploads%2Fgit-blob-e4ea1c4467bc2edd6ec55896fa54e6e5ff51fd05%2FScreenshot%202025-05-23%20at%2012.27.32%E2%80%AFPM.png?alt=media" alt=""><figcaption></figcaption></figure>

2. Complete the prerequisite steps outlined before clicking the "Install integration" button
   * Make the app available to users in your organization ([Teams docs](https://learn.microsoft.com/en-us/microsoftteams/teams-custom-app-policies-and-settings#upload-a-custom-app-using-teams-admin-center))
     * Access app management in the [Admin Center](https://admin.teams.microsoft.com/policies/manage-apps)
     * Navigate to Manage apps and search for P0 Security
     * Edit availability to all users of your organization

<figure><img src="https://3783273641-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSQNwGQz62W737pY0FzVb%2Fuploads%2Fgit-blob-18f4710f5dbb3ceefeb6f4c15a4481983d0abead%2FScreenshot%202025-05-23%20at%2012.31.32%E2%80%AFPM.png?alt=media" alt="" width="563"><figcaption></figcaption></figure>

{% hint style="warning" %}
While typically it takes a few minutes, sometimes it may take hours before the P0 Security app becomes fully available in your Teams instance.\
If you encounter errors during the installation process, try again later.
{% endhint %}

3. Click the "Install integration" button. You will be redirected to login to Entra ID. Authorize the P0 Security Bot by clicking "Accept".

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

4. Choose a Team and a public Channel where the P0 Security Bot will send approval messages. Click "Connect" to complete the installation.

{% hint style="info" %}
The Microsoft Teams integration supports standard channels only
{% endhint %}

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

You should see the following screen when the integration is successful:

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

You can pick a new channel from the drop-down and click "Switch channel" any time to route approval messages to a different channel. To use a different team, uninstall first by clicking the trash icon and re-install in a different team.

And that's it. You're ready to use p0 to grant least-privileged, just-in-time access to members of your organization!


---

# Agent Instructions: 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:

```
GET https://docs.p0.dev/integrations/notifier-integrations/microsoft-teams.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
