SAN FRANCISCO — A UCLA law professor has won a partial victory in his quest to obtain State Bar data on the racial makeup of bar exam test takers.

The California Supreme Court ruled Thursday that Professor Richard Sander and the public generally hold a legitimate interest in the data under common law. A trial judge will now have to decide if the public interest is outweighed by bar applicants’ privacy rights, though the high court suggested that’s unlikely so long as identifying information is withheld.