Content Studio Web Content Management System
Assembly: CSServer5 (in CSServer5.dll) Version: 5.7.5016.0 (5.7.5016.0)
Xml, example:
The class attribute in the returned xml can have one of the following values.
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.
[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
Parameters
- name
- Type: SystemString
The name to look for. - domain
- Type: SystemString
The domain where the account name should be found.
Return Value
Type: StringXml, example:
<root> <status>0</status> <statustext>Success</statustext> <account id="1" name="Domain\UserName" class="U" SID="S-1-5-4342142-432421432-654325432" /> </root>
Value | Meaning |
---|---|
A | The account is an alias type. |
W | The account is a well-known group. |
G | The account is a security group. |
U | The account is a user. |
D | The account is a domain. |
M | The account is a computer (machine). |
L | The account is deleted. |
I | The account is invalid. |
The account is unknown. |
Exceptions
Exception | Condition |
---|---|
Win32Exception | An error occurred in the Windows API |
CSException | Account not found on the network or SID is invalid (1014). |
Remarks
See Also