# Slack

{% hint style="info" %}
Installing P0 on Slack takes about 2 minutes.
{% endhint %}

### Before you begin

Make sure you are either "Workspace Admin" or "Workspace Owner" for your workspace, or ask a user with one of these roles to install the P0 Slack integration.

### Adding Slack

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

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

2. Click "Install integration". You'll be redirected to Slack's OAuth install page:

<figure><img src="https://3783273641-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSQNwGQz62W737pY0FzVb%2Fuploads%2Fgit-blob-d3a059e68c261754105d50ecff9f609316ca31d5%2FScreenshot%202024-03-04%20at%206.14.51%E2%80%AFPM.png?alt=media" alt="" width="408"><figcaption></figcaption></figure>

3. Choose the workspace where you want P0 installed, and select a channel where you want P0 to post.

{% hint style="warning" %}
The Slack channel you specify must be a public channel.
{% endhint %}

After you finish adding the Slack bot, your integration should look like this (just with your own information of course):

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

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

### Slack Settings

{% hint style="info" %}
P0 can create and manage a <mark style="color:blue;">@P0Approvers</mark> Slack group to automatically notify approvers when access requests are made.

If you want P0 to manage this group, you will need to configure Slack (in your Slack's admin settings page) so that anyone except guests can create and modify user groups.
{% endhint %}

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


---

# 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/slack.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.
