How to get current user SID in Mac OS X
In the shell you may use the command dsmemberutil to get at least the user SID:

Example to get the SID of a user by username:

% dsmemberutil getsid -U username