def get_role_name_by_id(settings, bad_role):
    """Identify a role's expected name by its ID"""

    for entry in settings["role_ladder"]:
        if entry["id"] == bad_role:
            return entry["name"]