Add an allowlist of IDP groups for accessing a channel
Request Request Example
Shell
JavaScript
Java
Swift
curl--location--request POST 'https://slack.com/api/admin.conversations.restrictAccess.addGroup' \
--data-urlencode'channel_id=' \
--data-urlencode'group_id=' \
--data-urlencode'token='
Response Response Example
200 - response
{"ok":true}
Request
Body Params application/x-www-form-urlencoded
channel_id
stringÂ
required
The channel to link this group to.
group_id
stringÂ
required
The IDP Group ID to be an allowlist for the private channel.
team_id
stringÂ
optional
The workspace where the channel exists. This argument is required for channels only tied to one workspace, and optional for channels that are shared across an organization.