CL Command Reference - CHGDLOOWN

CL Command List > CHGDLOOWN Reference

Description:

The Change Document Library Object Owner (CHGDLOOWN) command allows you to transfer document or folder ownership from one user to another user. The first owner no longer owns the object and the second user becomes the owner. The new owner must be enrolled in the system distribution directory. The authorities of other users to the document or folder do not change.

Restrictions:

To transfer ownership of a document or folder, all object (*ALLOBJ) special authority is required or the requester must be the owner of the document or folder.


Examples:

Example 1: Transferring Folder Ownership

CHGDLOOWN DLO(MYFLR) NEWOWN(ANN)

This command assigns ownership of folder MYFLR to a new owner named ANN. The authority is revoked from the current owner.



Example 2: Transferring Ownership of All Documents and Folders

CHGDLOOWN OWNER(ANDERSON) NEWOWN(SMITH)

This command assigns ownership of all documents and folders owned by ANDERSON to the new owner SMITH. The authority is revoked from the current owner.