Admin

Admin Usergroups Remove Channels

POST
/admin.usergroups.removeChannels

Remove one or more default channels from an org-level IDP group (user group).

Authorization

slackAuth admin.usergroups:write
AuthorizationBearer <token>

In: header

Scope: admin.usergroups:write

Header Parameters

token*string

Authentication token. Requires scope: admin.usergroups:write

Content-Type*"application/x-www-form-urlencoded"

Value in

  • "application/x-www-form-urlencoded"

Request Body

application/x-www-form-urlencoded

usergroup_id*string

ID of the IDP Group

channel_ids*string

Comma-separated string of channel IDs

Response Body

application/json

application/json

curl -X POST "https://example.com/admin.usergroups.removeChannels" \  -H "token: string" \  -H "Content-Type: application/x-www-form-urlencoded" \  -H "Content-Type: application/x-www-form-urlencoded" \  -d 'usergroup_id=string&channel_ids=string'
{  "ok": "True"}