Click or drag to resize

UserInfoUserNameToSID Method

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

Namespace: GSF.Identity
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.244-beta+cf93f5f8aea4b941e9b426fe4e180c2bd85d31a2
Syntax
public static string UserNameToSID(
	string userName
)
View Source

Parameters

userName  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 userName cannot be converted to a SID, userName will be the return value.
See Also