The function
user-name-to-sid-string
returns a standard SID (Security Identifier) associated with the user
user-name
on the current machine. It returns
nil
if it failed to find the user.
LispWorks User Guide and Reference Manual - 21 Dec 2011