Germany’s Cabinet on Wednesday approved a third gender option for official records that will allow people to be registered as “diverse,” complying with a ruling from the country’s highest court.

In November, the Federal Constitutional Court decided that people must be allowed to be entered in records as neither male nor female, ordering authorities either to create a third identity or scrap gender entries altogether.

WATCH: This baby’s gender is a secret

It ruled on a case in which a plaintiff sought unsuccessfully to have their entry in the birth register changed from “female” to “inter/diverse” or “diverse.” Until now, the only other option was to leave the gender blank.

During a three-year legal battle, the plaintiff provided a genetic analysis showing one X chromosome but no second sex chromosome. Women have two X chromosomes, while men have one X and one Y chromosome. The top court found that authorities could decide to do without any gender identity in civil registers or allow people in a similar situation to choose “another positive designation of their sex that is not male or female.”

B.C. baby first to get health card without gender marker

Wednesday’s Cabinet decision to add a third gender option, “diverse,” to the register of births requires parliamentary approval.

The center-left minister for families in Germany’s conservative-led coalition government, Franziska Giffey, said it is “an important step toward the legal recognition of people whose gender identity is neither male nor female.”

However, advocacy groups and some opposition politicians said it didn’t go far enough.

WATCH: Most Canadians opposed to gender neutral birth certificates: poll

“Why should you produce a doctor’s certificate to change your civil status?” opposition Green party lawmakers Sven Lehmann and Monika Lazar asked in a joint statement. “That must be a self-determined decision that is open to all.”

In neighboring Austria, the Constitutional Court ruled in June that authorities there must allow people to be entered in official records as something other than male or female if they so wish.

However, it found no need to change that country’s existing law since it doesn’t specify explicitly that people’s gender must be male or female.

Canada has taken similar moves in the past, including a baby in British Columbia who recently became one of the world’s first to receive a health card without a gender marker.

WATCH: Ontario’s first non-binary birth certificate handed out

Shortly after, a court ordered the government of Saskatchewan to allow the removal of gender markers on birth certificates, and a filmmaker in Ontario recently received a non-binary birth certificate after a drawn out legal battle.

By a slight majority however, Canadians remain uncomfortable with gender neutral birth certificates, according to a poll released by Angus Reid last July.

— With a file from Jessica Vomiero