In an odd scenario where the creator of a document has explicitly removed all of the administrative groups thereby making the document effectively inaccessible, I am having to manually take control of the restricted document individually using the filenet enterprise manager before I can access the document (even when logged in as admin).
How can I possibly take ownership of a document programatically using either of the FileNet APIs available in version 3.5 APIs?
I am thinking on the lines of setting the owner, applying security template, marking set, etc. however haven't been able to find the right API for it and was wondering if someone has experienced this before and/or would like to share any ideas?
Try this to change the owner and set permissions (java). You will need the appropriate permissions on the account you're using to connect to the objectstore and make changes. You will first need to connect to the objectstore. I'm not sure if you need to change the doc class/doc type and then add permissions but I've included this code as well. Please pick and choose what you need.