Retrieve Users Authorized to an Object (QSYRTVUA) API


  Required Parameter Group:

  Optional Parameter Group:


  Default Public Authority: *USE

  Threadsafe: No

The Retrieve Users Authorized to an Object (QSYRTVUA) API provides information about the users who are authorized to an object. The API returns the following information:

This API provides information that is similar to the Display Authority (DSPAUT) command.


Authorities and Locks

To use this API, you must have the authorities listed below or must be authorized to the Database Administrator function of the IBM i through System i™ Navigator's Application Administration support. The Change Function Usage (CHGFCNUSG) command, with a function ID of QIBM_DB_SECADM, can also be used to change the list of users allowed to use the function.

*X is required for all directories in the path.

Authority to Object
*OBJMGT
Authority to Object (QSYS.LIB *AUTL object)
No authority is required
Authority to Object (QDLS file system)
*ALL
Authority to Object (QOPT file system)
*USE

Required Parameter Group

Receiver variable
OUTPUT; CHAR(*)

The receiver variable that receives the information requested. You can specify the size of the area to be smaller than the format requested as long as you specify the length parameter correctly. As a result, the API returns only the data that the area can hold.

Length of receiver variable
INPUT; BINARY(4)

The length of the receiver variable provided. The length of receiver variable parameter may be specified up to the size of the receiver variable that is specified in the user program. If the length of receiver variable parameter that is specified is larger than the allocated size of the receiver variable that is specified in the user program, the results are not predictable.

Returned records feedback information
OUTPUT; CHAR(*)

Information about the object and information about the entries that are returned in the receiver variable.

See Format of Returned Records Feedback Information for details.

Length of returned records feedback information
INPUT; BINARY(4)

The length of the returned records feedback information provided. The length of the returned records feedback information parameter may be specified up to the size of the returned records feedback information variable specified in the user program. If the length of the returned records feedback information parameter specified is larger than the allocated size of the returned records feedback information variable that is specified in the user program, the results are not predictable. The minimum length is 16 bytes.

Format name
INPUT; CHAR(8)

The name of the format that is used to return information about the users who are authorized to the object.

You can specify this format:


Object name
INPUT; CHAR(*)

The object name.

If the length of the object name is greater than 0, then this parameter is assumed to be a path name represented in the coded character set identifier (CCSID) currently in effect for the job. If the CCSID of the job is 65535, this parameter is assumed to be represented in the default CCSID of the job.

If the length of the object name is -1, then this parameter is assumed to be a Qlg_Path_Name_T structure that contains a path name or a pointer to a path name. For more information on the Qlg_Path_Name_T structure, see Path name format.

Length of object name
INPUT; BINARY(4)

The length of the object name. If the length is -1, the object name parameter is assumed to be a Qlg_Path_Name_T structure.

Error code
I/O; CHAR(*)

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


Optional Parameter Group

Symbolic link
INPUT; CHAR(10)

If the last component in the path name is a symbolic link, specifies whether or not to retrieve users authorized to the symbolic link or users authorized to the object pointed to by the symbolic link.

The valid values are:


Receiver Variable Description

The following table describes the order and format of the data that is returned in the receiver variable for each user that is authorized to the object. For detailed descriptions of the fields in the table, see Field Descriptions.

RTUA0100 Format



Format of Returned Records Feedback Information

For a description of the fields in this format, see Field Descriptions.



Field Descriptions

Authorization list. The name of the authorization list that is securing the object. If there is no authorization list that secures the object, this field is *NONE.

Authorization list management. Whether the user has this authority to the object. This field is only valid if the object is an authorization list.

This field contains one of the following values:

Bytes available in the receiver variable. The number of bytes of data that is available to be returned to the user in the receiver variable. All available data is returned if enough space is provided.

Bytes available in the returned records feedback information. The number of bytes of data available to be returned to the user in the returned records feedback information. All available data is returned if enough space is provided.

Bytes returned in the receiver variable. The number of bytes of data that is returned to the user in the receiver variable.

Bytes returned in the returned records feedback information. The number of bytes of data returned to the user in the returned records feedback information.

Data add. Whether the user has this authority to the object.

This field contains one of the following values:

Data authority. The data authority that the authorized user has to the object.

This field contains one of the following values:

Data delete. Whether the user has this authority to the object.

This field contains one of the following values:

Data execute. Whether the user has this authority to the object.

This field contains one of the following values:

Data read. Whether the user has this authority to the object.

This field contains one of the following values:

Data update. Whether the user has this authority to the object.

This field contains one of the following values:

Entry length for each authorized user returned. The entry length, in bytes, of each entry in the list of users who are authorized to the object.

Number of authorized users. The number of complete entries in the list of users who are authorized to the object. A value of zero is returned if the list is empty.

Object alter. Whether the user has this authority to the object.

This field contains one of the following values:

Object existence. Whether the user has this authority to the object.

This field contains one of the following values:

Object management. Whether the user has this authority to the object.

This field contains one of the following values:

Object operational. Whether the user has this authority to the object.

This field contains one of the following values:

Object reference. Whether the user has this authority to the object.

This field contains one of the following values:

Owner. The name of the owner of the object. If the owner has no authority, no authorized user entry is returned for the owner.

This field can contain the following special value:

Primary group. The name of the primary group for the object. If the primary group has no authority, no authorized user entry is returned for the primary group.

This field can contain the following special value:

Profile name. The name of the user profile that is authorized to the object.

This field can contain the following special values:

Reserved. An ignored field.

Sensitivity level. The sensitivity level of a QDLS object. For all other objects, this field contains 0.

This field contains one of the following values:

User or group indicator. Whether this user is a user profile or a group profile.

This field contains one of the following values:


Error Messages



API introduced: V2R2

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