Link to home
Start Free TrialLog in
Avatar of emorey
emorey

asked on

HELP!! Creating a Document Reader Access List Via the Web?

I have a database with two levels of security. There are select documents that can be viewed by anyone and some that require a login to view. I need to give logged in users who are accessing the database via the web the ability to create secure documents (i.e. the ones that require a login to view). Any ideas on how I can do this?

I have tried making a readers field but it shows up as a text field on the web. No matter what I type in, the behavior does not work as desired. I have also tried making it a keyword list and entering my own values but that does not seem to work either.
Avatar of willislt
willislt

You cannot allow both authenticated and unauthenticated users
into your Notes database via a web browser. It is either one or
the other. Either you allow the ACL group "Anonymous" some kind
of access or you deny anonymous users any access, in which case
you are asking all users to authenticate.
Avatar of emorey

ASKER

Actually, I have figured out how to allow both authenticated and unauthenticated users into my database via a web browser.

My question is how to allow the logged in user to specify a reader list when using the form on the web.
I've never done this, but try the following.  Write a WebQuerySave agent for the newly
created documents using LotusScript.

Get a NotesItem to your 'Readers' field, and set the IsReaders property to True.

I don't work with the NotesItem object very often, so I don't know if you can just call the Documents save method at that point, or if you need to call the NotesItem's CopyItemToDocument method and then the documents save method - but it should be easy enough to try both and see what works.

ASKER CERTIFIED SOLUTION
Avatar of stamp
stamp

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
One more thing: in the Basic property tab for your Readers field check for this two things
- "Choices:"  set to: "Use Access Control List for choices"
- check "Allow multi-values" box