ID EN
OS

setgroups

Python 3.11

Set the list of supplemental group ids associated with the current process to groups. groups must be a sequence, and each element must be an integer identifying a group. This operation is typically available only to the superuser.

Syntax

PYTHON
os.setgroups(groups, /)

See Also

Availability getgroups()