Syntax
getgroups([string])
Description
The getgroups() returns an array of Gid’s that the given username belongs to.
If no username is given, the information for the calling user is returned
Example
include("grp") println(getgroups("root")) println(getgroups()) [0] [4, 20, 24, 27, 29, 44, 46, 60, 100]