WinNetworkBrowserLookupAccountName Method (String, String) Content Studio 5.7 SDK
Content Studio Web Content Management System

[This is preliminary documentation and is subject to change.]

Tests if the account name exists in the underlying system and returns basic data about the account.

Namespace: ContentStudio.Security
Assembly: CSServer5 (in CSServer5.dll) Version: 5.7.5016.0 (5.7.5016.0)
Syntax

public string LookupAccountName(
	string name,
	string domain
)

Parameters

name
Type: SystemString
The name to look for.
domain
Type: SystemString
The domain where the account name should be found.

Return Value

Type: String
Xml, example:
<root>
  <status>0</status>
  <statustext>Success</statustext>
  <account id="1" name="Domain\UserName" class="U" SID="S-1-5-4342142-432421432-654325432" />
</root>
The class attribute in the returned xml can have one of the following values.
ValueMeaning
AThe account is an alias type.
WThe account is a well-known group.
GThe account is a security group.
UThe account is a user.
DThe account is a domain.
MThe account is a computer (machine).
LThe account is deleted.
IThe account is invalid.
The account is unknown.
Exceptions

ExceptionCondition
Win32ExceptionAn error occurred in the Windows API
CSExceptionAccount not found on the network or SID is invalid (1014).
Remarks

The LookupAccountName function attempts to find a SID for the specified name by first checking a list of well-known SIDs. If the name does not correspond to a well-known SID, the function checks built-in and administratively defined local accounts. Next, the function checks the primary domain. If the name is not found there, trusted domains are checked.
See Also

Reference