"Transgender people and law enforcement interactions: Rights and Realities"
"You have the right to ask law enforcement officers to address you by the name you regularly use and by your stated pronouns. Officers should not use derogatory language toward you, needlessly yell at you, or physically restrain you without a reason. If you are searched, you have the right to request a same-gender search or ‘pat down.’"
(e) The facility shall not search or physically examine a transgender or intersex inmate for the sole purpose of determining the inmate's genital status. If the inmate's genital status is unknown, it may be determined during conversations with the inmate, by reviewing medical records, or, if necessary, by learning that information as part of a broader medical examination conducted in private by a medical practitioner.
https://www.law.cornell.edu/cfr/text/28/115.15