Clarity Service Management

get_system_users 

12-09-2015 04:21 PM

SPEL API methods

get_system_users

 

This method will get privileged SDM users and their id's

 

Definition:

get_system_users ( uuid)

uuid - contact handle

 

working example:

uuid who;
  send_wait(0,top_object(), "call_attr", "cnt", "current_user_id");
  who=msg[0];
  send_wait(0, top_object(), "call_attr", "api", "get_system_users", who );
   if (msg_error()) {
      logf(ERROR, "get_failed %s",msg[0]);
     }
     else
     {
     int i;
     for (i=0;i<msg_length();i++) {
       logf(SIGNIFICANT, "msg[%d]: '%s'", i, msg[i]);
      }
     }
//output
/* msg[0]: 'anonymous'
   msg[1]: '8F273A972A45E44C9FF0079259E2A60E'
   msg[2]: 'ServiceDesk'
   msg[3]: '70735EDD6CF3264D9B6976CDC095015F' */

           

Statistics
0 Favorited
1 Views
0 Files
0 Shares
0 Downloads

Tags and Keywords

Related Entries and Links

No Related Resource entered.