Methods / Administrative Service |
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.
Array of DomainUser objects. If the specified group does not exist, the return value is null.
IWFAdminService svc = GetAdminService(); string activeDirectoryLdapPath = ...// for example, LDAP://ou=Sales,dc=Frabrikam,dc=com string userFilter = ""; // All Users try { DomainUser[] users = svc.GetDomainUsers(activeDirectoryLdapPath, userFilter); 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:VIT-34\Manager; Full Name:Marcomm; Login Name:VIT-34\Marcomm; Full Name:SharePoint Administrator; Login Name:VIT-34\sp_adm; Full Name:Sujeet Kumar; Login Name:VIT-34\sujeetk; */