RunOnServer - using client to change document - when invoked by authors without edit access

RunOnServer - using client to change document - when invoked by authors without edit access.

I have users with author access that are creating response documents but do not have edit access after that. I invoke a RunOnServer agent in the PostSave event of the response to change a field on the parent (corresponding main) document. It works fine when I personally create the response but when someone with author access does it, the agent fails to update the parent document. I did this originally with an agent.run agent but received the message about the user not being in an authors field. The agents are signed by me with manager access. Is there something that I am missing? It would be the first time!! Just kidding.

Subject: RunOnServer - using client to change document - when invoked by authors without edit access

Maybe it’s late and I’m not reading it totally correct … but here are my observations.

You mention

“…do not have edit access after that…”

Are you saying they are not able to edit ones they submitted? If so, all you have to do is to populate an authornames field with their name.

OTOH Are you saying the user does not have access to update the parent doc? Depening on whether the agent is set to run-as-web-user or not, it will run under the authority of the signer (you) or the web user. You can change that.

Subject: RE: RunOnServer - using client to change document - when invoked by authors without edit access

Thank you. I am not very good at explaining these things. This is a client application.

I don’t want the Author users to have edit access to the documents (child or parent). I want them to create a response document, however. I have other users with Editor access take over control of the documents from there. When the Authors save this newly created response, in the PostSave event I have an agent/code to update a field on the Parent document. This code does not work for Authors because they are not in the author field and thus do not have edit access.

Is there a way to have an agent act on my behalf instead of the Authors to do this updating? On the web, this can be done but this application is client. Based on the Notes documentation it looks like I can use RunOnServer to run the agent code with my access rights. It does not seem to work. Or does RunOnServer also use the login user’s access rights in the client environment?

I can create a scheduled agent to do this updating of the parent documents but I don’t find this very efficient or timely.