MIDRANGE dot COM Mailing List Archive



Home » MIDRANGE-L » January 2013

Re: API for getting a list of users



fixed

On 12 Jan 2013 12:06, rpglist@xxxxxxxxxxx wrote:
Is there an API that will provide a list of all the users or better a
class of users on the system?

Not sure what defines a user "class".? There is for Group Profiles however. There is the *GRPMBR selection of DSPUSRPRF [TYPE parameter]. Also...

From a "Search:" of the IBM i 7.1 InfoCenter on the following tokens:
user profile list api

http://publib.boulder.ibm.com/infocenter/iseries/v7r1m0/topic/apis/qsylautu.htm
_i List Authorized Users (QSYLAUTU) API i_
"...
The List Authorized Users (QSYLAUTU) API puts a list of authorized system users into a user space.

This API provides information similar to the Display Authorized Users (DSPAUTUSR) command.
..."

http://publib.boulder.ibm.com/infocenter/iseries/v7r1m0/topic/apis/qgyolaus.htm
_i Open List of Authorized Users (QGYOLAUS) API i_
"...
4 Number of records to return Input Binary(4)
5 Format name Input Char(8)
6 Selection criteria Input Char(10)
7 Group profile name Input Char(10)
...
The Open List of Authorized Users (QGYOLAUS) API provides information about the authorized users of the system. It returns a list of authorized user names that meet the selection criteria specified by the caller of the API and information about those users. This API provides information similar to the Display Authorized Users (DSPAUTUSR) command and the Retrieve Authorized Users (QSYRAUTU) API.

Differences between QSYRAUTU and QGYOLAUS

The QGYOLAUS API returns the same information that the Retrieve Authorized Users (QSYRAUTU) API provides, but takes a complete snapshot at once and allows subsequent records to be obtained through the Get List Entries (QGYGTLE) API.
..."

http://publib.boulder.ibm.com/infocenter/iseries/v7r1m0/topic/apis/qsyrautu.htm
_i Retrieve Authorized Users (QSYRAUTU) API i_
"...
5 Selection criteria Input Char(10)
6 Starting profile name Input Char(10)
7 Starting profile option Input Char(1)
8 Group profile name Input Char(10)
...
The Retrieve Authorized Users (QSYRAUTU) API provides information about the authorized users of the system. It returns a list of authorized user names that meet the selection criteria specified by the caller of the API and information about those users. This API provides information similar to the Display Authorized Users (DSPAUTUSR) command.
..."






Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2014 by MIDRANGE dot COM and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available here. If you have questions about this, please contact