NAME

User::getgrouplist - Interface to glibc "getgrouplist" function

VERSION

Version 1.0

SYNOPSIS

use User::getgrouplist;

my $username = "johndoe";
my @list = getgrouplist($username);
print("Groups for user $username: " . join(" ", @list));

Description

User::getgrouplist is an interface for the getgrouplist function available on many BSD-like Unix systems, and Linux. It returns the list of all groups a user is in.

Exports

Function getgrouplist($username)