How to let user issue remote console command?

I wrote an agent to issue ‘load compact -B usermail.nsf’ on home mail server with run on behalf of ‘server.id’. When user (not administrator) run the agent, got error:Notes error: You are not authorized to use the remote console on this server.

I would like users can run ‘compact -B usermail.nsf’ without administrator rights.

Is it possible?

Subject: How to let user issue remote console command?

Hi,

if you want to run your agent with different access rights then the users who is triggering it, then you have to use the method “Agent.RunOnServer”. The agent will then be executed on the server with the right of the agent-signer. (The client will however still be “blocked” untill the server-agent finishes running.)

To pass some values to the agent you will have to use a document into which you write your data an save it. Then pass only the NoteID of this document to the agent like this: Agent.RunOnServer(NoteID)

Good luck

Hynek