Methods / Administrative Service |
Web Services
Retrieves all the user information in the domain that AgilePoint Server connects. It could be a local Windows system user, or a domain controller on the network.
public virtual DomainUser[] GetDomainUsers(string LDAPPath, string Filter)
Name | Description |
---|---|
LDAPPath |
|
Filter |
|
Array of DomainUser objects. If the specified group does not exist, the return value is null.
IWFAdminService svc = GetAdminService(); string LDAPPath = ...// for example, LDAP://ou=Sales,dc=Frabrikam,dc=com string Filter = ""; // All Users try { DomainUser[] users = svc.GetDomainUsers(LDAPPath, Filter); foreach (DomainUser user in users) { Console.WriteLine("Full Name:{0}; Login Name:{1};", user.FullName, user.UserName); } } catch (Exception ex) { Console.WriteLine("Failed! " + ShUtil.GetSoapMessage(ex)); } /* This example produces the following results: Full Name:Manager; Login Name:Demo3\Manager; Full Name:Marcomm; Login Name:Demo3\Marcomm; Full Name:SharePoint Administrator; Login Name:Demo3\sp_adm; Full Name:Sujeet Kumar; Login Name:Demo3\sujeetk; */
3.2.0.4 and higher