unfortunately, you cannot do it .
If your account LINE@ Approved accounts or official accounts, you can get all user ids. https://developers.line.me/en/reference/messaging-api/#get-group-member-profile
I found that we can only get the properties of member in group that send message to bot, but it is possible to get random userId from group or room? Thanks