In some situations you need to change the owner of an object because you might need to change the security and the original owner account is not longer available in the LDAP system. Therefore you can run the folloing script in the object stores search “Bulk Action” feature.

importClass(Packages.com.filenet.api.constants.RefreshMode);

function OnCustomProcess (CEObject)
{CEObject.set_Owner("svc_p8admin")
CEObject.save(RefreshMode.REFRESH);}