Sample - Slack Web API
POST/users.setActive

Set a user's active status

Attempts to mark a user as active, but the operation is deprecated and non-functional. Provide the authentication token required by the legacy method if you call it.

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

1 parameter
tokenstringrequired
Authentication token with the `users:write` scope.

2 status codes
200Returns an object containing `ok` set to true according to the legacy success schema.
okbooleanrequired
Allowed:true
defaultTypical error response
callstackstringoptional
Note: PHP callstack is only visible in dev/qa
errorstringrequired
Allowed:not_authedinvalid_authaccount_inactivetoken_revokedno_permissionorg_login_requiredekm_access_deniedmissing_scopeinvalid_argumentsinvalid_arg_nameinvalid_charsetinvalid_form_data
okbooleanrequired
Allowed:false

Error handling

token must carry the users:write scope. The operation is deprecated and non-functional, so do not rely on it to change a user's status.