Content Studio Web Content Management System
Assembly: CSServer5 (in CSServer5.dll) Version: 5.7.5016.0 (5.7.5016.0)
Xml
The number of entries returned by this function depends on the security descriptor located on the root domain object.
The API will return the entire set of entries in the domain or just a subset, depending on the access privileges of the Content Studio runtime.
The ACE used to control this behavior is "SAM-Enumerate-Entire-Domain", and is granted to Authenticated Users by default.
Administrators can modify this setting to allow users to enumerate the entire domain.
[This is preliminary documentation and is subject to change.]
Returns a list of trustees from the network of from the local machine.
The document is a complete list of all documents that exists but grouped in pages.
Avoid using this method to list users in domains with a large number of users.
Namespace: ContentStudio.Security
Assembly: CSServer5 (in CSServer5.dll) Version: 5.7.5016.0 (5.7.5016.0)
Syntax
public string EnumerateTrustees( WinNetworkBrowserDisplayLevels level, string domainName, WinNetworkBrowserDomainNameTypes domainNameType, int pageSize, out int pageCount, out int trusteesFound, bool includeDescription )
Parameters
- level
- Type: ContentStudio.SecurityWinNetworkBrowserDisplayLevels
Indicates the type of trustee to get. This parameter must be one of the members of the DisplayLevels - domainName
- Type: SystemString
The name of the domain to search. This can be the local machine name or a domain. If DomainName is empty or null the local machine is assumed - domainNameType
- Type: ContentStudio.SecurityWinNetworkBrowserDomainNameTypes
The type of domain name entered. Can be either a NetBIOS name or a DNS name or any. - pageSize
- Type: SystemInt32
The size of the paged data to return - pageCount
- Type: SystemInt32
The number of pages found - trusteesFound
- Type: SystemInt32
The number of trustees found - includeDescription
- Type: SystemBoolean
Set to true to return description in addition to name and id
Return Value
Type: StringXml
<root> <page number="1"> <trustee name="" desc="" fullname="" flags=id="" type=""/> <!--more trustes --> </page> <!--more pages --> <status>0</status> <statustext></statustext> <pagecount></pagecount> <recordcount></recordcount> </root>
Exceptions
Exception | Condition |
---|---|
Win32Exception | A network error occurred while attempting to enumerate trustees. |
ArgumentOutOfRangeException | A the level or DomainNameTypes parameters has av value that is out of the allowed range. |
Remarks
See Also