Subject: RE: GetDocumentByKey on Remote Server
Serge,
I found this in the notes help…perhaps the web agent isn’t running as the signer but instead as a default user?
From the Notes client or the Web
Agents run in the Notes client or on the Web based on the effective user. The effective user is the user under whose authority the agent runs. The effective user depends on the environment in which the agent runs.
Agent type Effective user
Notes client agent Current user ID
Web agent One of the following:
Current Web user
Agent signer (agent owner)
On behalf of (set in the Security tab of the Agent Properties box).
Scheduled agent Either:
Agent signer (agent owner)
On behalf of (set in the Security tab of the Agent Properties box).
When a user runs an agent from the Notes client, the agent runs with the rights of the effective user, which is the current User ID.
When a Web user runs an agent, the agent also runs using the rights of the effective user and Domino checks the effective user’s rights to access the database. However, you can set up the agent so that Domino checks the invoker’s rights to access the database instead of the effective user’s rights. Checking the invoker’s rights can provide more security.
To specify that Domino verify the invoker’s access to the database, follow these steps:
-
Double-click an agent name in the agent list.
-
Click the Security tab.
-
Check “Run as Web user.”
When “Run as Web user” is checked, Domino prompts Web users for their name and password when they attempt to run the agent. Domino uses the login information to check for the invoker’s rights in the database ACL.
I also found this:
If the OpenAgent URL command starts an agent, there is no current document, but DocumentContext and getDocumentContext return a special NotesDocument or Document object containing the values of the CGI variables supported by Lotus Domino. In the case of RunAgent or ToolsRunMacro, CGI values are available but not automatically. The form backing up the current document must contain a field named after each desired CGI variable.
Could this have something do with it? I rarely run agents from the web…
brandt