Home > Domino Tips > Administrator > Mail > Make users give you access to mail files
Domino Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

MAIL

Make users give you access to mail files


Eric Parsons
08.22.2001
Rating: -3.60- (out of 5)


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


What happens when you've forgotten to give the Admin group access to mail files, and you have 3000 or so to manipulate? Here's some code that goes into the Database Script/Post Open event, if you can wait for the user to close and reopen their mail (or if you really are in a hurry, in the Memo Post Open event.) I have the code in a library, but it works equally well in the actual event.

The code checks for the entry, the level of the entry, and the type of entry, in case a user is clever enough to make the Admin group a person type.

This is implemented through the mail template, and deployed through the Design task.



Code

Sub SetNotesAdmin()
'dim db as the current file, the code runs in the context of the user.
'dim acl as NotesACL
'dim aclEntry as NotesACLEntry

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( "AdminGroup" )
   ' 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, "AdminGroup", 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 

      If entry.UserType <> ACLTYPE_PERSON_GROUP Then
entry.UserType = ACLTYPE_PERSON_GROUP
      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
Mail
Run or restart Notes/Domino agents via text messages
How to create mail files using a LotusScript agent
How to turn off the message recall feature in Lotus Notes 8
Domino server setting and email policy tricks admins must know
Top 10 Lotus Notes/Domino administration tips of 2008
Understanding a Lotus Notes Smart Upgrade rollout
Bringing MailRule documents back into view
Use SMTP outbound authentication to relay hosts in Lotus Notes Domino 8
Notes/Domino 6 version of 'Discover Folder'
Five tips to improve email performance

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