def METHOD_NAME(user, team_id):
    if user.is_not_in_team(team_id) and user.is_not_epm():
        raise dci_exc.Unauthorized()
    team = base.get_resource_orm(models2.Team, team_id)
    return remotecis.get_all_remotecis(team.id)