The function known-sid-integer-to-sid-string
returns the SID string for integer, which needs to be one of the known integers, which are documented in the MSDN in the entry for WELL_KNOWN_SID_TYPE Enumeration
.
known-sid-integer-to-sid-string
returns nil
for an unknown integer.
LispWorks User Guide and Reference Manual - 13 Feb 2015