win32file.AddUsersToEncryptedFile

AddUsersToEncryptedFile(FileName, pUsers)

Allows user identified by SID and EFS certificate access to decrypt specified file

Parameters

FileName : string

File that additional users will be allowed to decrypt

pUsers : ((PySID,string,int),...)

Sequence representing ENCRYPTION_CERTIFICATE_LIST - elements are sequences consisting of users' Sid, encoded EFS certficate (user must export a .cer to obtain this data), and encoding type (usually 1 for X509_ASN_ENCODING)