title: ejabberd xmpp set presence for offline user
body: <p>For a status application we are using ejabberd xmpp server.</p>
  <p>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.</p>
  <p>I tried with <a href="https://docs.ejabberd.im/developer/ejabberd-api/admin-api/#set-presence" rel="nofollow noreferrer">https://docs.ejabberd.im/developer/ejabberd-api/admin-api/#set-presence</a>, but this only works for an active session and valid resource.</p>
  <p>How can we &quot;override&quot; the presence of a specified user?</p>