This can now be done by configuring a webhook that is triggered on the User Event. The webhook is sent when a user logs in, logs out, is created, approved or updated. See Configure webhooks that trigger on Discourse events to integrate with external services for details.
3 Likes