on condition of anonymity

idiom

Definition of on condition of anonymity

: only if one's name will not be revealed She agreed to speak to the reporter only on condition of anonymity.