CL Command Reference - GRTACCAUT
CL Command List > GRTACCAUT Reference
Description:
The Grant Access Code Authority (GRTACCAUT) command allows you to give the specified users authority to access documents and folders associated with the access codes. Access is restricted to read only (*USE authority).
Restrictions:
. The access code must be defined to the system before you can grant access code authority.
. The user being granted access code authority must be enrolled in the system distribution directory.
. To use this command, you must have all object (*ALLOBJ) or security administrator (*SECADM) special authority.
Examples:
Example 1: Granting Authority to Multiple Users
GRTACCAUT ACC(3 30 60) USER(SAM LARRY)
This command gives authority to access codes 3, 30, and 60 to SAM and LARRY.
Example 2: Granting Authority Based on Another User
GRTACCAUT ACC(*REFUSER) USER(JOE) REFUSER(TOM)
This command grants access code authority to JOE based on TOM¡¯s authority. For example, if JOE currently has authority to access codes 1, 12, and 50, and TOM currently has authority to access codes 8 and 9, the GRTACCAUT command authorizes JOE to access codes 1, 8, 9, 12, and 50.