The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

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)