How-To: How can I check, if a user is still in OX

Environment:

UCS with open-xchange

How can I check, if a user is still in OX present:

/opt/open-xchange/sbin/listuser -c 10 -A oxadmin -P $(< /etc/ox-secrets/context10.secret) |grep <username>

If you have more than the context 10 you can list these users via:
/opt/open-xchange/sbin/listuser -c 14 -A oxadmin-context14 -P $(< /etc/ox-secrets/context14.secret)

Is the user still in the OX-queue?

/usr/share/univention-ox/manage_listener_queue --list

Delete a user, if it is NOT queued

/opt/open-xchange/sbin/deleteuser -c 10 -A oxadmin -P $(< /etc/ox-secrets/context10.secret) -u <username>

Delete a user, if it is queued

/usr/share/univention-ox/manage_listener_queue --delete --filter 'uid=<username>


For newer versions of OX take a look here:

Mastodon