Command reference / sec
GRTUSRAUT
Grant User Authority
The Grant User Authority (GRTUSRAUT) command grants authority to a user by referring to another user profile. Note: You should use group support or authorization lists instead of the Grant User Authority (GRTUSRAUT) command support whenever possible for better performance in granting authority and the subsequent SAVSYS or SAVSECDTA function. If a security officer issues this command, the authorities in the user profile are granted to the receiving user, including object management authority. If this command is run by the owner of the user profile, all authorities for each object owned are granted, including object management authority. For objects that the user profile being referred to does not own but is authorized to use, the user of this command must have object management authority and the authorities to be granted for the object, or must own the object. Otherwise, no authority is granted for the object. Ownership of objects or authorities held by a user profile cannot be changed by this command. Database row and column access control masks and permissions cannot be changed by this command. Authorities to objects granted to a user profile are added to any authorities that the user profile already had.
Allowed environments: *ALL.
Positional parameters: 2.
Restrictions
- The following user profiles cannot be specified for either of the parameters on this command:
- QANZAGENT, QAUTPROF, QCLUMGT, QCLUSTER, QCOLSRV, QDBSHR, QDBSHRDO, QDFTOWN, QDIRSRV, QDLFM, QDOC, QDSNX, QEJB, QEJBSVR, QGATE, QIBMHELP, QIPP, QLPAUTO, QLPINSTALL, QLWISVR, QMGTC, QMSF, QNETSPLF, QNFSANON, QNTP, QPEX, QPM400, QRJE, QSNADS, QSPL, QSRVAGT, QSYS, QTCM, QTCP, QTMHHTP1, QTMHHTTP, QTSTRQS, QWEBADMIN, QWSERVICE, QYCMCIMOM, QYPSJSVR
Parameters
USER
User
Specifies the user profile to whom authority is to be granted. This is a required parameter.
name- Specify the name of the user profile.
REFUSER
Referenced user
Specifies the user profile to be referred to for authority. This is a required parameter.
name- Specify the name of the user profile.
Examples
GRTUSRAUT USER(USRB) REFUSER(USRA)
Running GRTUSRAUT under QSECOFR User Profile. This command grants the user profile USRB the same authorities that USRA has for all objects that USRA owns (including object management authority) or has authority to.
GRTUSRAUT USER(USRB) REFUSER(USRC)
Running GRTUSRAUT under User Profile USRA. This command grants the user profile USRB the same authorities that USRC has for all objects that USRC has authorities to only if USRA, entering this command, has object management authority to the objects or is the owner of the objects being referred to.
Generated from os/cl/catalog/GRTUSRAUT.json and os/cl/help/GRTUSRAUT.json.