For a status application we are using ejabberd xmpp server.
At some times, a status must be set from a web server for a user. It may be that the user doesn't have an active xmpp session.
I tried with https://docs.ejabberd.im/developer/ejabberd-api/admin-api/#set-presence, but this only works for an active session and valid resource.
How can we "override" the presence of a specified user?