Function nix::unistd::getgroups

source ยท
pub fn getgroups() -> Result<Vec<Gid>>
Expand description

Get the list of supplementary group IDs of the calling process.

Further reading

Note: This function is not available for Apple platforms. On those platforms, checking group membership should be achieved via communication with the opendirectoryd service.