Solved

Documents created using agent do not enforce readers field

Posted on 2000-04-03
4
289 Views
Last Modified: 2013-12-18
Hi,

I have an agent which creates documents and populates readers and authors fields. Once the agent is done running, anyone with reader access to the database can access all of the documents, even if they are not in the readers field! Doing a ToolsRefreshAllDocuments fixes the problem, but I don't like this solution. I don't want anyone who is not listed as a reader to be able to view these documents at any time, instead of the current solution where they can see it between the time that document was created by the agent and the time the refresh is run.

Why is this like this and how can I fix it?

(Sorry I don't have more points to spare)

Zaphod.
0
Comment
Question by:Z_Beeblebrox
  • 3
4 Comments
 
LVL 1

Accepted Solution

by:
sk5t earned 30 total points
ID: 2681736
If you are doing this with script, you'll need to set the .IsAuthors and .IsReaders properties on those fields.  Until the document is actually computed with the form (which [ToolsRefreshAllDocuments] does), whatever you have assigned to the fields are "just plain values" to Notes.  Use NotesDocument.ComputeWithForm in LotusScript.

If the agent is purely formula language, and it does not run on the frontend, then it gets kind of messy.  (By which I mean, you'll probably have to write the document's UNID to an environment variable, then do @Command([ToolsRunMacro]) for a LotusScript agent that gets the doc by that UNID and runs ComputeWithForm on it.)

Steve
0
 
LVL 7

Author Comment

by:Z_Beeblebrox
ID: 2681783
Thanks for the quick response. calling doc.ComputeWithForm (True, True) just before saving the document did the trick.

Zaphod.
0
 
LVL 7

Author Comment

by:Z_Beeblebrox
ID: 2681874
Whoah, I think I was a bit too quick to dish out the points. That solution worked a little too well. I had a field which was of type authors which had as a default value the creator of the document, namely me. However I can no longer see the documents. I know they are there, but there is no way that I can get to them.

Zaphod.
0
 
LVL 7

Author Comment

by:Z_Beeblebrox
ID: 2681905
Yikes, another issue. I have a role called [Readers] which allows people to read all documents in the database. However the agent does not respect this.

I can get around the previous issue by manually setting the field to be the current user, but this role thing is a bit of a problem.

Zaphod.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Encrypted Mail message in a NSF 10 29
How to retrive archive emails from nsf file if it is overwritten 12 59
Domino not switching to TLS 1.0 4 772
Lotus notes email code 13 90
This is an old article, please see an updated version of this article, located here: http://www.experts-exchange.com/articles/23619/Notes-8-5x-Windows-7-Notes-info-and-tips.html
This article covers general Notes 8.5 troubleshooting information including recreating the Notes\Data folder.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

914 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now