Slack API re-activate user after deactivating by users.admin.setInactive

Viewed 1186

When a user was deactivated (after using undocumented API method users.admin.setInactive), is there any possibilities to re-activate him using slackAPI? Unfortunatelly i didn't find any method for this...

2 Answers

The only way I've found is by using Slack SIM API. See PATCH /Users/{id} on: https://api.slack.com/scim

Worth mentioning this is only available to Slack workspaces on the Plus plan and Slack Enterprise Grid.

Hope that helps!

After long searching it is possible to get users reactivated with the free api. You can not do it with a legacy key and api key. But you can with an session api key

see https://github.com/SvenHamers/slack-sessiontoken for an example how to automate it (Golang)

Api: users.admin.setRegular

Related