Is there a way to detect an user account is deleted by prosodyctl deluser on runtime?

Hi. I want to end a running meeting if the hosted user’s credential is deleted by prosody.
Is that event detectable from prosody or how to flow this trigger to front end?

Nope, there is no such feature. But you can create a custom module to trigger it via http and close every session that exists that is using that account. And you can be triggering this and the prosodyctl to delete a user …

Thank you,
via http you mean writing some API and get it in browser side?

You can have a module that has a http endpoint, and that can be triggered on the machine when you are deleting the user something like curl http://localhost:1234/someendpoint/deleteSession?userId=user@domain.com

1 Like