ID EN
OS

getgrouplist

Python 3.11

Return list of group ids that user belongs to. If group is not in the list, it is included; typically, group is specified as the group ID field from the password record for user, because that group ID will otherwise be potentially omitted.

Syntax

PYTHON
os.getgrouplist(user, group, /)

See Also

Availability