# Slack

Pritunl supports single sign-on using Slack to allow employees to use their Slack account to sign into Pritunl. Oauth is used to authenticate users, re-authentication is also done on each connection. When a Slack user is removed or disabled they will no longer be able to connect to a Pritunl server. To start set the *Single Sign-On* to *Slack* and set the *Slack Team*. The team should be the Slack url used to access login such as `pritunl.slack.com`.

![](/files/STiHASM89QgIIcLRCM16)

Once configured a *Sign in with Slack* button will appear on the login page. Before users can login *Sign in with Slack* must be enabled in the Slack permission settings. Once compete users will be able to login and download their profiles using Slack. By default users will be added to the organization set in the *Single Sign-On Organization* in the settings. If a Slack team group name matches an organization in Pritunl the user will be added to that organization. The match is case sensitive and will only match the lowercase *Group name* set in the Slack group settings not the *Name*.

![](/files/EKmddDwTstBIwvcJMsK9)

### Organization Priority

The first matching group will be used with group names sorted alphabetically. For more control over users with multiple groups the group description can be used to set the priority by placing `pritunl:100` with the lowest number have first priority. The priority declaration can be placed anywhere in the group description and the description may contain unrelated text.

![](/files/r2zPq9QKVP8KSnKXe2ss)


---

# 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.pritunl.com/kb/vpn/sso/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.
