Well, if the user is not logged on then the hive would not be loaded... but then, the mapping could be put in their logon script anyway.

You could try GetSID(), my one and only contribution to the UDF lib.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.