GetUserGroups()

From Rackspace Email & Apps API
Jump to: navigation, search

This function will return the groups and group members from a user's address book. The resulting associative array should look as follows:

   array[0]["groupName"]="mygroup1"
   array[0]["firstname"]="john" -- first name of first member of the group
   array[0]["lastname"]="smith" -- last name of first member of the group
   array[0]["email"]="john@domain.com" -- email address of first member of the group
   array[1]["groupName"]="mygroup1"
   array[1]["firstname"]="sally" -- first name of the second member of the group
   ...
   array[17]["groupName"]="mygroup2" -- the next group...

Input Parameters

Five strings and a result integer

   Administrative username,
   Administrative password,
   Domain name,
   User ID (the portion of the email address before the @ symbol),
   Group array (formatted as above),
   Result integer

Return Values

If successful, the return value of the function will be 1.

Consult the Result Code Table for a list of result codes and their meaning.