Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
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:
Top |
Keyword | Description | Choices | Notes |
---|---|---|---|
ACC | Document access code | Single values: *REFUSER Other values (up to 300 repetitions): 1-2047 |
Required, Positional 1 |
USER | User profile | Values (up to 300 repetitions): Name | Required, Positional 2 |
REFUSER | Reference user profile | Name, *NONE | Optional |
Top |
Specifies the access code being authorized for use by the user identified on the User profile (USER) parameter.
This is a required parameter.
Single values
Other values (up to 300 repetitions)
Top |
Specifies the user profile name of the users to whom you are granting access code authority. The users identified will have the access code added to their current list of authorized access codes; this access code is used to verify additional document and folder accesses from the document library. The user must be enrolled in the system distribution directory before being granted authority to use an access code.
Note: By granting an access code to a group user profile, that access code is granted (implicitly) to every user under that group.
This is a required parameter.
You can specify 300 values for this parameter.
Top |
Specifies the referred-to user profile on which the access code authority is based. If this parameter is used, then *REFUSER must be specified for the Document access code (ACC) parameter.
Top |
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.
Top |
*ESCAPE Messages
Top |