#g4slkch_getUserList

  *//////////////////////////////////////////////////////////////*       
  * #g4slkch_getUserList - Get User List                         *          
  *                                                              *          
  * Input:                                                       *          
  *   in_parameter (required) - The parameter name.              *          
  *   in_value (required) - The value of the parameter.          *          
  *                                                              *          
  * Output:                                                      *          
  *   out_errMsg - The error message (if error exists).          *          
  *                                                              *          
  * Returns:                                                     *          
  *   0 for success, -1 for error.                               *          
  *                                                              *          
  * Settable Variables ([r]=required)                            *          
  *   id - The Slack ID to use [r]                               *          
  *   team - The Slack Team to use [r]                           *          
  *   ccsid - The CCSID to use (1208)                            *          
  *   debug - Turn on Debug (*NO, *YES)                          *          
  *   debug_file - The debug file name.                          *          
  *                 (/tmp/g4g_[id]_getUserList.txt)              *          
  *                                                              *          
  *//////////////////////////////////////////////////////////////*          
 D #g4slkch_getUserList...                                                  
 D                 PR            10i 0                                      
 D  out_errMsg                  256    Options(*NOPASS)   

#g4slk_getUser List is used to list users available on the team. The results will populate the G4SLKULPF File.

Returns: The number of users retrieved or -1 for an error.

Optional Parameters:

  • Error Message (output) - Error message

Settable Variables (use #g4slk_setValue)

  • id (required) - The Slack ID to use to join a channel.
  • team (required) The Slack Team to use to join a channel.
  • ccsid - The CCSID to use. The default is 1208.
  • debug - Specify *YES to turn on debug, or *NO to turn off debug. The default is *NO.
  • debug_file - Specify the fully qualified file name for the main debug file. The default is /tmp/g4slk_[id]_getUserList.txt.