Notification on slack username change

234 views Asked by At

Am the admin for a slack team.

Is there a way for me (the admin) to get a notification whenever a user changes his username on slack?

Thanks!

1

There are 1 answers

0
Erik Kalkoken On

Yes, that is possible using events.

You can subscribe to events and use either the RTM API or the Event API to make your bot listen to those events and react accordingly. I personally would recommend using the Event API, since it is much easier to implement.

The event user_change will be triggered each time a user makes changes to his/her profile. Your bot can then use the API method users.profile.set to reset unwanted changes (this API method works on paid teams only).