CL Command Reference - RTVDLOAUT
CL Command List > RTVDLOAUT Reference
Description:
The Retrieve Document Library Object Authority (RTVDLOAUT) command retrieves the authority assigned to a folder or filed document.
Restrictions:
. A user must be in the system distribution directory entry to retrieve the various authorities.
. A user must have at least use (*USE) authority to the filed document or folder.
. A user with less than all (*ALL) authority to the filed document or folder will only be able to retrieve that user¡¯s authority or the owner.
. A user must have *ALL authority to the object, or all object (*ALLOBJ) special authority, or be the owner of the filed document or folder, to retrieve all the authorities.
. A user must have *ALLOBJ special authority to retrieve the *ROOT folder public authority.
Examples:
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.