I am currently developing chat system for our application using ejabberd API.
I am having a problem on how to retrieve a list of subscribed group by username.
I only can retrieve a list of groups that user occupied, but not subscribed using get_room_users API.
My reference: https://docs.ejabberd.im/developer/ejabberd-api/admin-api/
My question:
How to retrieve list of subscribed group by username?
Do I need to register all subscribers to the group to make use of get_room_users API?