Reputation: 152
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...
Upvotes: 4
Views: 1882
Reputation: 2084
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 Business+ plan and Slack Enterprise Grid.
Hope that helps!
Upvotes: 1
Reputation: 11
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
Upvotes: 1