Do you know how to use Room Scope and to group streams (users) to a "protected" group?
The application adapter roomStart and roomJoin work well for allowing connection and creation of groups. One way to group users by room is to connect them all to the same room scope. For example, your RTMP URL would look like this : rtmp://serverhost/live/rooma, where rooma is the scope / room.
For more information about scopes, see our Scopes Serverside Guide.