I couldn't find much documentation about it apart from https://lists.freebsd.org/pipermail/freebsd-questions/2007-January/138772.html. Perhaps it's time to adopt the groups(7) manual page from NetBSD: https://man.netbsd.org/groups.7