Hi Mark,
Whenever a user joins in the room, you can store that roomId as user's custom data using setCustomUserData API. The same can be fetched using getLiveUserInfo API. This way, you will be able to get the required user info whenever needed.
Let me know if you have any other queries.
Thanks.