Where allowed to run: Compiled CL program or interpreted REXX (*BPGM *IPGM *BREXX *IREXX) Threadsafe: No |
Parameters Examples Error messages |
The Retrieve Document Library Object Authority (RTVDLOAUT) command retrieves the authority assigned to a folder or filed document.
Restrictions:
Top |
Keyword | Description | Choices | Notes |
---|---|---|---|
DLO | Document library object | Character value, *DOCID, *LADNTSP, *SYSOBJNAM, *ROOT | Required, Positional 1 |
FLR | Folder | Character value, *NONE | Optional, Positional 2 |
DOCID | Document identifier | Character value, *NONE | Optional |
LADNTSP | LADN timestamp | 0000000000000001-FFFFFFFFFFFFFFFF, *NONE | Optional |
SYSOBJNAM | System object name | Name, *NONE | Optional |
STRUSRAUTE | Starting user authority entry | 1-99999, 1 | Optional |
OWNER | CL var for OWNER (10) | Character value | Optional |
AUTL | CL var for AUTL (10) | Character value | Optional |
SENSITIV | CL var for SENSITIV (20) | Character value | Optional |
PUBAUT | CL var for PUBAUT (10) | Character value | Optional |
CHKOUTUSR | CL var for CHKOUTUSR (32) | Character value | Optional |
ACC | CL var for ACC (220) | Character value | Optional |
USRAUT | CL var for USRAUT (1020) | Character value | Optional |
GRPAUT | CL var for GRPAUT (340) | Character value | Optional |
PGP | CL var for PGP (10) | Character value | Optional |
Top |
Specifies the name of the document or folder for which authorities are retrieved.
Top |
Specifies the name of the folder where the object specified on the DLO parameter is located.
Note: FLR(*NONE) must be specified if the object is a first-level folder.
Top |
Specifies the library-assigned name of the document or folder.
Top |
Specifies the LADN timestamp of the document or folder.
Top |
Specifies the system object name.
Top |
Allows a user to specify the starting user authority entry number to use when retrieving specific user authorities (USRAUT parameter). STRUSRAUTE will enable retrieving specific user authorities for a DLO that has more than 50 specific user authorities. If no CL variable is provided for the USRAUT parameter, this parameter is ignored.
Top |
Specifies the name of a 10-character CL variable used to retrieve the owner of the selected document or folder.
Top |
Specifies the name of a 10-character CL variable used to retrieve the authorization list assigned to the selected document or folder. The value *NONE is returned if no authorization list has been assigned.
Top |
Specifies the name of a 20-character CL variable used to retrieve the sensitivity assigned to the selected document or folder.
Top |
Specifies the name of a 10-character CL variable used to retrieve the public authority assigned to the selected document of folder.
Top |
Specifies the name of a 32-character CL variable used to retrieve the user profile who has the document checked out and the user profile on whose behalf the document was checked out. If no user has checked out the documented, the 32-character variable will be blank. If the document was not checked out by a user working on behalf of another user, the last 16 characters will be blanks.
Top |
Specifies the name of a 200-character CL variable used to retrieve the access codes assigned to the specified document or folder.
Top |
Specifies the name of a 1020-character CL variable used to retrieve the specific user authority assigned to the document or folder. USRAUT will return a maximum of 50 specific authorities per invocation of the RTVDLOAUT command. If the document or folder has more than 50 specific user authorities associated with it, you can use the STRUSRAUTE parameter on subsequent invocations of RTVDLOAUT to return user authorities starting with the specified entry numbers.
Within the 1020-character CL variable are the total number of authorized users, the number of authority entries returned, the starting entry number and the ending entry number.
For example:
RTVDLOAUT DLO(MYDOC) FLR(MYFLR) USRAUT(&RTNUSRAUT) + STRUSRAUTE(1)
In the example above, MYDOC has 55 authorized users. The total number of specific user authorities will be 55. The number of authority entries returned will be 50. The starting authority entry number will be 1. The ending authority entry number will be 51.
Top |
Specifies the name of a 340-character CL variable used to retrieve the group authority assigned to the specified document or folder. Only the groups associated to the user of this command will be returned.
Top |
Specifies the name of a 10-character CL variable used to retrieve the primary group assigned to the specified document or folder. The value *NONE is returned if no primary group has been assigned.
Top |
Example 1: Retrieve the Owner of a Document Library Object
RTVDLOAUT DLO(MYDOC) FLR(MYFLR) OWNER(&OWNER)
This command retrieves the owner of document library object MYDOC in folder MYFLR and stores the value in the variable &OWNER.
Example 2: Retrieve Private User Authorities for a Document
RTVDLOAUT DLO(MYDOC) FLR(MYFLR) USRAUT(&RTNUSRAUT) STRUSRAUTE(1)
This command retrieves the user authorities for document MYDOC in folder MYFLR and stores the list in the &RTNUSRAUT variable. The list will contain up to 50 privately authorized users and their authorities.
Top |
Top |