TOSID
The TOSID function is used to convert a Security Identifier (SID) byte array into a string representation of a SID. A SID is a unique identifier used by Windows to represent users, groups, and computer accounts.
The function takes a byte array as input, which is the byte representation of the SID, and returns a string representation of the SID. The string representation of a SID looks like this: "S-1-5-21-3623811015-3361044348-30300820-1013".
Syntax
string TOSID(byte[] data)