win32security.CreateWellKnownSid

PySID = CreateWellKnownSid(WellKnownSidType, DomainSid )

Returns one of the predefined well known sids

Parameters

WellKnownSidType : int

One of the Win*Sid constants

DomainSid=None : PySID

Domain for the new SID, or None for local machine