IWFAdminService svc = GetAdminService();
try
{
WFGroup[] apGroups = svc.GetGroups();
Console.WriteLine("AgilePoint Group {0} has {1} members:",
groupName, grpMembers.Length);
Console.WriteLine("AgilePoint Groups:");
foreach(WFGroup grp in apGroups)
{
System.Console.WriteLine("Name:{0};Group Lead:{1} ", grp.Name, grp.ResponsibleUser);
}
}
catch (Exception ex)
{
Console.WriteLine("Failed! " + ShUtil.GetSoapMessage(ex));
}
/*
This example produces the following results:
AgilePoint Groups:
Name:Administrators;Group Lead:\Administrator
Name:Domain Users;Group Lead:VITBDC\amarnv
*/