IBM Support

How to change the ownership of the object to a new user ID

Question & Answer


Question

How do you change the ownership of objects to a new User ID in IBM Rational Synergy? What is the recommended procedure for handling objects owned by users that have left the organization?

Cause

Objects owned by users that have left the organization are no longer accessible and require the ownership to be change in order to allow further work to be completed.

Answer

The objects that have an owner attribute with the value set to the old user's id, the ownership of the source attribute in the file system is ccm_root.

Here is a procedure for transferring ownership:

  1. Start a Synergy Classic client session and set the role to ccm_admin.

    ccm set role ccm_admin

  2. Query for all working objects for which the ownership has to be changed.

    ccm query -o <owner_name> -s working

  3. Mark all objects returned above by creating a unique attribute on all objects (in this example, the attribute is called "unique_attr").

    ccm attr -c unique_attr -t string -v "" @

  4. Change the owner attribute to the value ccm_root.

    ccm attr -m owner -v ccm_root @

  5. View the files using the cat command to change the file permission's on the objects to ccm_root.

    ccm cat @

  6. Bring up a session as the user who is going to become the owner of the objects.

  7. Query for all objects marked in Step 3.

    ccm query "has_attr('unique_attr')"

  8. Modify the owner attribute of the objects to the new owner.

    ccm attr -m owner -v <new_owner> @

  9. View the files using the cat command to change the file permission's on the objects to the new owner.

    ccm cat @

  10. Delete the unique attribute on all objects.

    ccm attr -d unique_attr @

Once done all the objects related to the old user ID in the working state are transferred to new user ID.

[{"Product":{"code":"SSC6Q5","label":"Rational Synergy"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"General Information","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"7.1a;7.1.0.1;7.1;7.0;6.5;6.4;6.3;6.5a;6.6a","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
22 December 2020

UID

swg21419794