The table below contains the user-related events, as well as the purpose of each event. If you want to execute actions based on user events, you can use any of the events mentioned below as an event interface.
Interface
Description
IPostUserCreated
Event interface that allows an app to register as a handler of the IPostUserCreated event. This event is triggered after the user is saved to the database.
IPostUserDeleted
Event interface that allows an app to register as a handler of the IPostUserDeleted event. This event is triggered after the user has been removed from the database.
IPostUserLoggedIn
Event interface that allows an app to register as a handler of the IPostUserLoggedIn event. This event is triggered after the user logs into Rocket.Chat.
IPostUserLoggedOut
Event interface that allows an app to register as a handler of the IPostUserLoggedOut event. This event is triggered after the user logs out from Rocket.Chat.
IPostUserStatusChanged
Event interface that allows an app to register as a handler of the IPostUserStatusChanged event. This event is triggered after the user changes his status on Rocket.Chat to online, away, busy, or offline. It is not triggered when the custom status is changed.
IPostUserUpdated
Event interface that allows an app to register as a handler of the IPostUserUpdated event. This event is triggered after the user is saved to the database.
Was this article helpful?
Thank you for your feedback! Our team will get back to you