Get Groups

API Type

Web Services

Description

Retrieves all the group objects in the system.

Syntax

public virtual WFGroup[] GetGroups()

Parameters

Name Description
None Not Applicable

Output

An Array of WFGroup objects.

Example

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
*/

Supported Versions

3.2.0.4 and higher