Grant User Permission (GRTUSRPMN)

Where allowed to run: All environments (*ALL)
Threadsafe: No
Parameters
Examples
Error messages

The Grant User Permission (GRTUSRPMN) command allows you to grant permission for a user to handle documents and folders or to perform OfficeVision/400-related tasks on behalf of another user. Access is restricted to documents, folders, and mail items that are not personal. The users specified must be enrolled in the system distribution directory before you run this command.

Restrictions:

The user must have all object (*ALLOBJ) special authority to grant permission for a user to work on behalf of another user.

Top

Parameters

Keyword Description Choices Notes
TOUSER To user profile Name Required, Positional 1
FORUSER For user profile Single values: *CURRENT
Other values (up to 300 repetitions): Name
Optional, Positional 2
Top

To user profile (TOUSER)

Specifies the name of the user profile that is permitted to work on behalf of the user specified on the For user profile (FORUSER) parameter. Access is restricted to OfficeVision/400 documents, folders, and mail items that are not personal. The user profile must exist, and the user must be enrolled in the system distribution directory before you run this command.

Top

For user profile (FORUSER)

Specifies the names of the user profiles for which the user specified on the To user profile (TOUSER) parameter works. The users must be enrolled in the system distribution directory before you run this command.

*CURRENT
You are granting permission to someone working on your behalf.
name
Specify the name of the user profile on whose behalf the user specified on the To user profile (TOUSER) parameter works.
Top

Examples

GRTUSRPMN   TOUSER(JUDY)  FORUSER(PEGGY)

JUDY is the administrative assistant for an executive. This command allows JUDY to work with documents or folders for PEGGY that are not personal.

Top

Error messages

*ESCAPE Messages

CPF9007
User permission given for &1 users, not given &2 users.
CPF9009
System requires file &1 in &2 be journaled.
CPF9845
Error occurred while opening file &1.
CPF9846
Error while processing file &1 in library &2.
CPF9847
Error occurred while closing file &1 in library &2.
Top