def METHOD_NAME(self, request):
    """
    If the request is done by an admin user  it will return a list of the users of the
    facility
    :param baseurl: First part of the url of the server that's going to be requested
    :param facility_id: Id of the facility to authenticate and get the list of users
    :param username: Username of the user that's going to authenticate
    :param password: Password of the user that's going to authenticate
    :return: List of the learners of the facility.
    """
    facility_id = request.data.get("facility_id")
    baseurl = request.data.get("baseurl")
    password = request.data.get("password")
    username = request.data.get("username")
    facility_info = get_remote_users_info(baseurl, facility_id, username, password)
    user_info = facility_info["user"]
    roles = user_info["roles"]
    admin_roles = (user_kinds.ADMIN, user_kinds.SUPERUSER)
    if not any(role in roles for role in admin_roles):
        raise PermissionDenied()
    students = [u for u in facility_info["users"] if not u["roles"]]
    return Response({"students": students, "admin": facility_info["user"]})