Skip to main content

setgroups

Set active groups from a list of group ids.

def setgroups(
groups: list[int]
) - > None

Set active groups from a list of group ids.

Parameters

NameTypeDescription
groupslist[int]A list of integer group IDs to be set as the active supplementary groups for the current process.

Returns

TypeDescription
NoneReturns the result of the underlying system call, typically None on success.