What is the equivalent slack event to team_join when a user leaves (or is removed from) a team
Asked Answered
F

2

5

Using the Slack events API, what is the equivalent event to team_join for when a user leaves, or is removed from a team?

My app needs to know when users leave or are removed from a Slack team so it can deactivate them.

Filiform answered 20/6, 2018 at 7:40 Comment(0)
F
10

So I asked Slack directly, and this is the response I got

https://twitter.com/SlackHQ/status/1009365516367122433

A user_change event will tell you when an account has been deactivated https://api.slack.com/events/user_change

Filiform answered 20/6, 2018 at 9:25 Comment(0)
P
0

Specifically, looking at an example, the user.deleted property becomes true in the user_change event

Paxon answered 23/1 at 14:32 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.