| Methods / Administrative Service | |
Web Services
Retrieves all the domain group objects.
public virtual KeyValue[] GetDomainGroups(string LDAPPath, string Filter)
| Name | Description |
|---|---|
LDAPPath |
|
Filter |
|
Array of KeyValue objects. If the specified group is not found, the output is null.
IWFAdminService svc = GetAdminService();
string LDAPPath = ...// for example, LDAP://ou=Sales,dc=Frabrikam,dc=com
string Filter = "A*";
Filter = string.Format("(name={0})", Filter);
try
{
KeyValue[] grps = svc.GetDomainGroups(LDAPPath, Filter);
foreach (KeyValue grp in grps)
{
Console.WriteLine("Group Name:{0}; Group Distinct Name:{1};", grp.Key, grp.Value);
}
}
catch (Exception ex)
{
Console.WriteLine("Failed! " + ShUtil.GetSoapMessage(ex));
}
3.2.0.4 and higher