Manage Learn to apply best practices and optimize your operations.

How To Permit Access To The "About" Document For Which Default Access Is Set To "No Access"

Use LotusScript code adds a $PublicAccess field to the "About" document
Users attempting to access a database for which they are not permitted access
will get a message to the effect that they are not authorized to use the
database. Want to allow them to at least be able to see the "About" document
so they can get contact information, etc.?

Here are the steps to get this to work ...

Determine the UNID of the "About" document under document properties.
Use GetDocumentByUNID in LotusScript to access the "About" document and add the
$PublicAccess field with a value of "1". Save the "about" document with the
You must also have at least one view set to public access, or the user will not
be able to view the "About" document. So, create a public access view that has
displays no documents or fields. Finally, set the ACL on the database to "Read
Public Documents"

Sample code:
Dim session As New NotesSession 'Set the current Notes Session to session
Dim db As NotesDatabase 'Declare db as type NotesDatabase
Set db = session.GetDatabase("","databasenamel.nsf") 'Set db
Dim doc As NotesDocument 'Declare doc as type NotesDocument
Set doc = db.GetDocumentByUNID("85255A0A0010AC8E852558BF00737B2A")
Dim PublicAccess As New NotesItem( doc, "$PublicAccess", "1" )
Call doc.Save(True,True)

That's it - someone attempting to access the database without proper
authorization can now at least read the "About" document where you can put
contact information. etc.

You can also add a button to clear the icon from the user's desktop using this
formula in a button ....

@Command([FileCloseWindow]); 'Closes the "About document
@Command([FileCloseWindow]); 'Closes the database and leaves the database icon
selected on the workspace
@PostedCommand([EditClear]) 'Deletes the icon from the workspace
This was last published in November 2000

Dig Deeper on Domino Resources - Part 5

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.




  • iSeries tutorials's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...