Home > Domino Tips > Administrator > ACL > Maintain Mailbox Acl
Domino Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

ACL

Maintain Mailbox Acl


Richard Casesa
10.26.1999
Rating: -4.50- (out of 5)


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


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.

Code

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

Rate this Tip
To rate tips, you must be a member of SearchDomino.com.
Register now to start rating these tips. Log in if you are already a member.




Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED CONTENT
ACL
Display Lotus Notes user group membership details in a tree view
Update the ACL from the Roles view with LotusScript
Controlling access to the Domino Directory with Extended ACL
Security expert offers Notes/Domino downloads
Seven tips to strengthen your Domino e-mail security
Meet the Extended ACL
How to remove "Enforce uniform/consistent access" flag even without access to the database!
Managing groups entries in ACL
Retrieve documents from Notes database, which are locked by Readers field
Bulk ACL fixer

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary

DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



Domino & Lotus Notes Security Solutions: Authentication, Antispam, Encryption and Antivirus
HomeTopicsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersDomino IT Downloads
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 1999 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts