WSDL Web Services Functions


userList() returns a list of the users. For privileges to see the list, the user logged must have the PM_USERS permission in their role.

userListResponse userList(string sessionId)  
Parameters:

string sessionId: The session ID, which was obtained during login

Example:

// get the users list

  $user_values = array(array('sessionId'=> $sessionId));

  $user_result  = $client->__SoapCall('userList', $user_values);
 $data    = $user_result->users;
 if(is_array($data))
 {
  foreach ($data as $user) {
   print "$user->name and $user->guid\n";
  }
 }
 else
 {
  print "$data->name\n";
 }

groupList() returns a list of the groups. For privileges to see the list, the user logged in must have the PM_USERS permission in their role.

groupListResponse groupList(string sessionId)
Parameters:
string sessionId: The session ID, which was obtained during login.

Example: 

// get the group list
  $user_values = array(array('sessionId'=> $sessionId));

 $group_result  = $client->__SoapCall('groupList', $user_values);
 $data    = $group_result->groups;
 if(is_array($data))
 {
  foreach ($data as $group) {
   print "$group->name and $group->guid\n";
  }
 }
 else
 {
  print "$dara->name and $data->guid\n";
 }