Check Profile Token User (QSYCHKTU, QsyChkPrfTknUser) API


  Required Parameter Group for QSYCHKTU:


  Default Public Authority: *USE

  Threadsafe: Yes



  Syntax for QsyChkPrfTknUser:
 #include <qsyptkn.h>

 void QsyChkPrfTknUser
        (int            *Result,
         unsigned char  *Profile_token,
         void           *Error_code);

  Service Program: QSYPTKN

  Default Public Authority: *USE

  Threadsafe: Yes

The Check Profile Token User (OPM, QSYCHKTU; ILE, QsyChkPrfTknUser) API verifies that the user profile associated with the token is the same as the current user profile in the thread. No other attributes associated with the token are compared with the attributes of the current thread.


Authorities and Locks

None.


Required Parameter Group

Result
OUTPUT; BIN(4)

The results from the check. If 1 is returned, the profile associated with the token is the same as the current user profile in the thread. If 0 is returned, the profile associated with the token is different from the current user profile in the thread.

Profile token
INPUT; CHAR(32)

The profile token to be checked.

Error code
I/O; CHAR(*)

The structure in which to return error information. For the format of the structure, see Error code parameter.


Error Messages



API introduced: V5R1

[ Back to top | Security APIs | APIs by category ]