getGroups

Returns all system group IDs (if UID isn't specified) or group IDs that the specified user is associated with.

gid_t[]
getGroups
(
gid_t uid = uid_t.max
)

Meta