ibm-information-center/dist/eclipse/plugins/i5OS.ic.apis_5.4.0.1/QWTSETJU.htm

122 lines
3.8 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Copyright" content="Copyright (c) 2006 by IBM Corporation">
<title>QwtSetJuid()--Set Job User Identity</title>
<!-- Begin Header Records ========================================== -->
<!-- All rights reserved. Licensed Materials Property of IBM -->
<!-- US Government Users Restricted Rights -->
<!-- Use, duplication or disclosure restricted by -->
<!-- GSA ADP Schedule Contract with IBM Corp. -->
<!-- Sec SCRIPT A converted by B2H R4.1 (346) (CMS) by V2KEA304 -->
<!-- at RCHVMW2 on 17 Feb 1999 at 11:05:09 -->
<!-- Edited by Kersten Jan 02 -->
<!--End Header Records -->
<link rel="stylesheet" type="text/css" href="../rzahg/ic.css">
</head>
<body>
<a name="Top_Of_Page"></a>
<!-- Java sync-link -->
<script language="Javascript" src="../rzahg/synch.js" type="text/javascript">
</script>
<h2>QwtSetJuid()--Set Job User Identity</h2>
<div class="box" style="width: 60%;">
<br>
&nbsp;&nbsp;Syntax<br>
<pre>
#include &lt;qwtjuid.h&gt;
int QwtSetJuid(void);
</pre>
<br>
&nbsp;&nbsp;Service Program Name: QWTJUID<br>
<!-- iddvc RMBR -->
<br>
&nbsp;&nbsp;Default Public Authority: *EXCLUDE<br>
<!-- iddvc RMBR -->
<br>
&nbsp;&nbsp;Threadsafe: Yes<br>
<!-- iddvc RMBR -->
<br>
</div>
<p>The<strong>QwtSetJuid()</strong> function sets the job user identity of the
current job to the name of the current user profile of the thread in which the
function is called.</p>
<p>The job user identity is the name of the user profile by which this job is
known to other jobs. The job user identity is used for authorization checks
when other jobs on the system attempt to operate against this job. Examples of
functions that operate against another job include the Start Service Job
(STRSRVJOB) command, the Retrieve Job Information (QUSRJOBI) API, the Change
Job (QWTCHGJB) API, all job control commands, and functions that send signals
from one job to another.</p>
<p>The job user identity is not used to make authorization checks from within
this job. Authorization to perform a function is always based on the current
user profile of the thread in which the function is called.</p>
<p>This API is intended to be used by either multithreaded servers or single
threaded servers that want to establish a job user identity that remains
constant, regardless of the user profile under which it processes individual
client requests.</p>
<p>When a job user identity has not been explicitly set by an API, a job
running single threaded will have a job user identity that is the same as the
current user profile that the job is running under at the time. When a job user
identity has not been explicitly set by an API, a job running multithreaded
will have a job user identity that is the name of the user profile that the job
was running under at the time it became multithreaded.</p>
<br>
<h3>Parameters</h3>
<p>None</p>
<br>
<h3>Authorities and Locks</h3>
<p>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.</p>
<br>
<h3>Return Value</h3>
<dl>
<dt><strong>[EPERM]</strong></dt>
<dd>Operation not permitted.
<p>You must have appropriate privileges or be the owner of the object or other
resource to do the requested operation.</p>
</dd>
</dl>
<br>
<hr>
API introduced: V4R3
<hr>
<center>
<table cellpadding="2" cellspacing="2">
<tr align="center">
<td valign="middle" align="center"><a href="#Top_Of_Page">Top</a> | <a href=
"sec.htm">Security APIs</a> | <a href="aplist.htm">APIs by category</a></td>
</tr>
</table>
</center>
</body>
</html>