win32security.ConvertStringSidToSid

PySID = ConvertStringSidToSid(StringSid)

Creates a SID from a string representation

Parameters

StringSid : string

String representation of a SID