win32security.AdjustTokenGroups

PyTOKEN_GROUPS = AdjustTokenGroups(TokenHandle, ResetToDefault , NewState )

Sets the groups associated to an access token.

Parameters

TokenHandle : PyHANDLE

The handle to access token to be modified

ResetToDefault : boolean

Sets groups to default enabled/disabled states,

NewState : PyTOKEN_GROUPS

Groups and attributes to be set for token

Comments

Accepts keyword args.

Return Value

Returns previous state of groups modified