Examples: GetEntry method (NotesACL - LotusScript®)

  1. This script gets the entry for Kendra Bauer, from the ACL of progwork.NSF.
    Dim db As New NotesDatabase( "snapper", "progwork.nsf" )
    Dim acl As NotesACL
    Dim entry As NotesACLEntry
    Set acl = db.ACL
    Set entry = acl.GetEntry( "Kendra Bauer" )
  2. This script gets the entry for the "Unknown" group in the current database. It modifies the ACL so that Unknown cannot delete documents in the database.
    Dim session As New NotesSession
    Dim db As NotesDatabase
    Dim acl As NotesACL
    Dim entry As NotesACLEntry
    Set db = session.CurrentDatabase
    Set acl = db.ACL
    Set entry = acl.GetEntry( "Unknown" )
    If Not ( entry Is Nothing ) Then
      entry.CanDeleteDocuments = False
      Call acl.Save
    End If