Script to change owner/user of Job Definition in CPS
We are looking for the script which can change the user/owner of the job definition, by default when ever we create/import any job definition in CPS it adds the user in "Security Tab" along with Grant-All and Grantable-All permissions and it will be grayed out and no changes allowed to that object owner/user.
We have requirement to change the owner/user of the job definitions. Can any one provide the cps script logic to update user/owner.
Gerben Blom replied
Here are some other options:
1) Easiest: add the roles back to the user in UME, import the user, revoke the roles again from UME (now dont touch the user anymore), what you can do is disable the user to prevent login.
2) Better: on the job definition on change action set the Action Subject user to another user with the correct privileges. If this is set, it overwrites the definition owner.