CL Command Reference - CHGDLOPGP
CL Command List > CHGDLOPGP Reference
Description:
The Change Document Library Object Primary Group (CHGDLOPGP) command transfers documents or folders from one primary group to another primary group. The second group profile becomes the primary group. The new primary group must be in the system distribution directory. The authorities that other users have to the document or folder are not changed.
The old primary group¡¯s authority to the object is revoked unless *NO is specified for the Revoke old authority (RVKOLDAUT) parameter.
Note: The system does not determine document or folder primary group by checking a group profile if one is specified in the user profile.
Restrictions:
To transfer the primary group of a document or folder, the user must have all object (*ALLOBJ) special authority or be the owner of the document or folder. The user must have delete authority (*DLT) to the old primary group profile and add (*ADD) authority to the new primary group profile.
Examples:
Example 1: Transferring Folder Primary Group
CHGDLOPGP DLO(MYFLR) NEWPGP(GROUP1)
This command assigns primary group of folder MYFLR to a new primary group named GROUP1. The authority is revoked from the current primary group.
Example 2: Transferring Primary Group of All Documents and Folders
CHGDLOPGP CURPGP(GROUP1) NEWPGP(GROUP2)
This command assigns a new primary group for all documents and folders assigned to primary group GROUP1 to the new primary group GROUP2. The authority is revoked from current primary group.