Manage Learn to apply best practices and optimize your operations.

Maintain Mailbox Acl

If you're bothered by users who modify the ACL of their mailbox, thereby
locking out the Administrators group, this tip is for you.

Simply put the code below in the PostOpen Event of the Database Script in your
Mail template. When the database is opened, it will check to see if the person
entering the mailbox has Manager Access (necessary for modifying the ACL) and
use their access to correct ACL without their knowledge. The good thing about
putting the code in the Database PostOpen event is that script will check the
ACL everytime the database is opened, unless opened by a Calendar Manager or
someone else who does not have Manager access.
Sub Postopen(Source As Notesuidatabase)
Dim db As NotesDatabase
Dim acl As NotesACL
Dim entry As NotesACLEntry

Set db = Source.Database
If ( db.CurrentAccessLevel <> ACLLEVEL_MANAGER ) Then
' Don't do anything if this user doesn't have Mgr access
Else
Set acl = db.ACL
Set entry = acl.GetEntry( "NotesAdmin" )
' Check if Admin group is in the ACL
If entry Is Nothing Then
'Add the proper Admin group to ACL as Mgr
Set entry = New NotesACLEntry ( acl, "NotesAdmin",
ACLLEVEL_MANAGER )
Call acl.Save
Else
'Check to if the user has bumped down the access level for the
Admin group
If entry.Level <> ACLLEVEL_MANAGER Then
entry.Level = ACLLEVEL_MANAGER
Call acl.Save
End If
End If
End If
End Sub
This was last published in November 2000

Dig Deeper on Lotus Notes Domino Administration Tools

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchWindowsServer

Search400

  • iSeries tutorials

    Search400.com'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 ...

SearchDataCenter

SearchContentManagement

Close