async def METHOD_NAME(
    app: web.Application, user_id: UserID, socket_id: SocketID
) -> None:
    """Adds user in rooms associated to its groups"""
    primary_group, user_groups, all_group = await list_user_groups(app, user_id)
    groups = [primary_group] + user_groups + ([all_group] if bool(all_group) else [])
    sio = get_socket_server(app)
    for group in groups:
        sio.enter_room(socket_id, f"{group['gid']}")