get_system_users

Document created by Gutis Champion on Dec 9, 2015
Version 1Show Document
  • View in full screen mode

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

           
1 person found this helpful

Attachments

    Outcomes