manager__getUsername
Parameters:
p1: partition username
p2: manager’s id
Return Type:
String
Description:
Returns username of a manager based on their record id (which is returned by some calls instead of username). This differs from the user__getUsername function in that this function will only return a result if the id provided is in fact a manager, whereas the user__getUsername function will return a result for users of any role type.
Example (using Code Kit):// assumes partition username "anthony" exists
// assumes user id "5" exists
$data = APICommand( "manager__getUsername", "anthony", "5" ); $xml = simplexml_load_string( $data );
echo $xml->result;