Command reference / sec
ADDAUTLE
Add Authorization List Entry
Adds a user profile and that user's authorities to an authorization list. The list and the user profile must already exist. If the user is already on the list, a message is issued and the existing authorities are left unchanged. Users who can run it are the list owner, a user with *AUTLMGT authority on the list, a user with *ALLOBJ special authority, and a user with the QIBM_DB_SECADM function. QIBM_DB_SECADM users cannot add themselves or change their own authority unless they already hold the required authorities. Each listed user receives the authorities given on the command.
Allowed environments: *ALL.
Positional parameters: 3.
Restrictions
- *AUTLMGT authority lets a user manage the list and therefore the authorities for all objects the list secures.
- Only the list owner, a user with *ALLOBJ special authority, or a user with the QIBM_DB_SECADM function can add a user with *AUTLMGT authority.
- A user with *AUTLMGT authority can add users and grant authority only up to the *AUTLMGT level.
Parameters
AUTL
Authorization list
Specifies the authorization list to which the users are added. The list must already exist.
USER
User
Specifies one or more user profiles to add to the list, up to 50. A user already on the list keeps its current authorities, and a message is issued.
AUT
Authority
Specifies the authority given to the users named on the USER parameter. Users must have *AUTLMGT authority to manage the list.
Allowed values:
*CHANGE, *EXCLUDE, *ALL, *USE, *OBJALTER, *OBJEXIST, *OBJMGT, *OBJOPR, *OBJREF, *ADD, *DLT, *EXECUTE, *READ, *UPD, *AUTLMGT
*EXCLUDE- The user cannot access the object. Cannot be combined with other authority values.
*CHANGE- Performs all operations except those limited to the owner or controlled by *OBJEXIST and *OBJMGT. If the object is an authorization list, the user cannot add, change, or remove users.
*ALL- Performs all operations except those limited to the owner or controlled by *AUTLMGT, including controlling existence, changing security, and transferring ownership.
*USE- Performs basic operations such as running a program or reading a file, but cannot change the object.
*AUTLMGT- Adds, changes, or removes users on the authorization list, and renames or duplicates the list.
*OBJALTER- Alters object attributes. For database files, allows adding or removing triggers and constraints.
*OBJEXIST- Controls object existence and ownership, needed to delete, save, restore, or transfer the object.
*OBJMGT- Manages object security, moves or renames the object, and adds members to database files.
*OBJOPR- Looks at the object description and uses the object, subject to data authority.
*OBJREF- Lets the object be referenced by another object, such as a referential constraint whose parent is the physical file.
*ADD- Adds entries to an object, such as job entries to a queue or records to a file.
*DLT- Removes entries from an object, such as messages from a queue or records from a file.
*EXECUTE- Runs a program or locates an object in a library or directory.
*READ- Shows the contents of an object.
*UPD- Changes the entries in an object.
Examples
ADDAUTLE AUTL(PAYROLL) USER(TOM) AUT(*ALL *AUTLMGT)
Adds user TOM to the PAYROLL authorization list with all authority to the objects it secures, and with authority to manage the list.
Generated from os/cl/catalog/ADDAUTLE.json and os/cl/help/ADDAUTLE.json.