Open A Navigator Based On Your 'Role' In A Database

You can open a database and be directed to a specific Navigator based on the
role you have in the database ACL. This code should be placed in the PostOpen
of the DatabaseScript and you will need to change the name of the role and the
names of the navigators accordingly.
Sub Postopen(Source As Notesuidatabase)
Dim session As New NotesSession
Dim db As NotesDatabase
Dim workspace As New NotesUIWorkspace

Const NotesMacro$ = {@IsMember("[Admin]" ; @UserRoles)}

Set db = session.CurrentDatabase
permission = Evaluate(NotesMacro$)

Forall v In permission
If v = 1 Then
Call workspace.OpenDatabase _

Exit Sub
End If
End Forall

Call workspace.OpenDatabase(db.server,db.filepath,"BasicNavigator","0")

End Sub

Dig Deeper on Lotus Notes Domino Administration Tools

Start the conversation

Send me notifications when other members comment.

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 ...