UserInfoUserNameToSID Method

Converts the given user name to the SID corresponding to that name.

Definition

Namespace: Gemstone.Identity
Assembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.175 -- Release Build+70cfebd19f80455d07e1cf93607e59f6af0e38f4
public static string UserNameToSID(
	string accountName
)

Parameters

accountName  String
The user name for which to look up the SID.

Return Value

String
The SID for the given user name, or the user name if no SID can be found.

Remarks

If the accountName cannot be converted to a SID, accountName will be the return value.

See Also