Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
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.
Top |
Keyword | Description | Choices | Notes |
---|---|---|---|
DLO | Document library object, or | Character value, *SYSOBJNAM | Optional, Positional 1 |
OWNER | Current owner | Element list | Optional, Positional 2 |
Element 1: User profile | Name | ||
NEWOWN | New owner | Element list | Optional |
Element 1: User profile | Name | ||
FLR | Folder | Character value, *NONE | Optional |
CUROWNAUT | Current owner authority | *REVOKE, *SAME | Optional |
SYSOBJNAM | System object name | Name | Optional |
Top |
Specifies the name of the document or folder object that is assigned to a new owner. When the Current owner (OWNER) parameter is specified, the DLO parameter cannot be specified.
Top |
Specifies the user profile name of the current owner from whom all documents or folders are transferred. All documents or folders owned by this user are assigned a new owner. When the Document library object, or (DLO) parameter is specified, the Current owner (OWNER) parameter cannot be specified.
Top |
Specifies the user profile of the new owner to whom the documents or folders are transferred.
Top |
Specifies the name of the folder where objects identified on the Document library object, or (DLO) parameter are located.
Top |
Specifies whether the authorities for the current owner are revoked when ownership is changed.
Top |
Specifies the system object name of the document or folder. This parameter is ignored if an object name is specified on the Document library object, or (DLO) parameter.
Top |
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.
Top |
*ESCAPE Messages
Top |