Targets
Slack
Was this page helpful?
Documentation Index
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
| Capability | Required | Granted by (any one) |
|---|---|---|
| Provision members | Yes | admin |
| Read channels | Yes | channels:read |
| Field | Type | Required | Description |
|---|---|---|---|
userName (Email) | string | Yes | Email address the member signs in with. |
displayName | string | Name shown in Slack. | |
givenName | string | First name. | |
familyName | string | Last name. | |
title | string | Job title shown on the profile. | |
active | bool | Whether the member is active. An inactive member is deactivated. | |
channels | grant | Public channels the member belongs to. One row grants one channel. | |
channels[] | string | Channel ID. |
| Account field | Worker field |
|---|---|
userName | worker.business_email |
stage active {
target slack.user {
userName = worker.business_email
displayName = worker.display_name
title = worker.job.name
active = true
channels = ["general", "announcements"]
}
}
stage active {
target slack.user {
userName = worker.business_email
channels = ["engineering", "incidents", "deploys"]
}
}
stage active {
target slack.user {
userName = worker.business_email
displayName = "{{ worker.display_name }} (Contractor)"
active = true
channels = ["contractors"]
}
}
stage terminated {
target slack.user {
userName = worker.business_email
active = false
channels = []
}
}
Was this page helpful?