




The function canonicalize-sid-string returns the canonical format of the SID specified by sid-string. If the string is already canonical (in the S-1-.. format) it returns a string which is equal to it. When the string is an alias, it returns the canonical form. The aliases are documented in the MSDN in the page titled "SID strings" (search for SDDL_ANONYMOUS).
canonicalize-sid-string returns nil for an unrecognized SID.
LispWorks User Guide and Reference Manual - 20 Sep 2017