QwtClearJuid()--Clear Job User Identity


  Syntax
 #include <qwtjuid.h>

 int QwtClearJuid(void);

  Service Program Name: QWTJUID

  Default Public Authority: *EXCLUDE

  Threadsafe: No; see Usage Notes.

TheQwtClearJuid() function clears any job user identity that was previously set by the QwtSetJuid() function or by the Set Job User Identity (QWTSJUID) API. This function may only be called when the job is running single threaded. The job user identity then defaults to the user profile that the job is currently running under.


Parameters

None


Authorities and Locks

If the job user identity is currently set, then either *USE authority to the user profile associated with the job user identity or all object (*ALLOBJ) special authority is required. If the job user identity is not already set, then no authorization is required.


Return Value

[EPERM]
Operation not permitted.

You must have appropriate privileges or be the owner of the object or other resource to do the requested operation.

Function not allowed.

Function not allowed while running multithreaded.


Usage Notes

The QwtClearJuid() function may be called in a job that allows multiple threads, but only while it is running single threaded. It explicitly denies access if any secondary threads are active.



API introduced: V4R3
Top | Security APIs | APIs by category