Sample - Slack Web API
POST/usergroups.enable

Enable a User Group

Enables a disabled User Group for the team. Supply the User Group's encoded ID in usergroup and optionally request its member count with include_count.

  • RetriesRetries up to 2×, 500ms backoff, 30s timeout.

1 parameter · 2 body fields
tokenstringrequired
Authentication token with the `usergroups:write` scope.

Form data identifying the User Group to enable and optionally requesting its member count.

include_countbooleanoptional
Include the number of users in the User Group.
usergroupstringrequired
The encoded ID of the User Group to enable.

2 status codes
200Returns the enabled User Group object, including its identifier, name, description, handle, team association, and status metadata.
okbooleanrequired
Allowed:true
usergroupobjectrequired
defaultTypical error response
callstackstringoptional
Note: PHP callstack is only visible in dev/qa
errorstringrequired
Allowed:not_authedinvalid_authaccount_inactivetoken_revokedno_permissionorg_login_requireduser_is_botuser_is_restrictedinvalid_arg_nameinvalid_array_arginvalid_charsetinvalid_form_data
okbooleanrequired
Allowed:false

Error handling

usergroup is required and must contain the encoded ID of the User Group to enable. Send an authentication token with the usergroups:write scope; include_count must be a boolean when provided.