System.GetUserSID

string System.GetUserSID ( 

string UserName )

Description

Gets the string SID value for a user on the local computer.

Tip: This action is normally used to get the SID value for use in the File.SetPermissions action.

Parameters

UserName

(string) The username of the user to get the SID value for.

Returns

(string) Returns the SID value or a blank string if this action failed. If this action fails you can reference the System.UserSIDError variable to get the system error code for this action. For more information on the possible system error codes and their meanings, see http://msdn.microsoft.com/en-us/library/ms681381%28v=VS.85%29.aspx

ResultVariable

When adding an action with the action editor, you can use this field to specify a variable that the return value will be stored in.

See also:  Related Actions