system-groups

system-groups is a built-in function in `C source code'.

(system-groups)

Return a list of user group names currently registered in the system.
The value may be nil if not supported on this platform.