This decision holds that the complaint alleged a viable claim under CCP 526a to enjoin Orange County’s program for collection of DNA samples from persons accused of misdemeanors on the ground that as applied it violated the accused’s rights to privacy, counsel and due process. Though Orange County had the accused misdemeanants sign forms waiving those rights, the complaint alleged facts that showed the waivers were not knowing because the County did not disclose to whom the DNA samples would be disclosed or how the DNA sequencing data would be stored or used. Also, the waiver of the right to counsel was made before the court had informed the accused misdemeanants of their right to free counsel. Hence, the waivers, at least allegedly, were not made with full knowledge of the rights being surrendered.