Home > Domino Tips > Administrator > ACL > Give Administrators ACL Access
Domino Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

ACL

Give Administrators ACL Access


Damion Alexander
02.14.2001
Rating: -2.50- (out of 5)


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


Some of our Developers often forget to put the Administrators group in the ACL. We found a way to automate adding the Administrators group to the ACL's of ALL database's so that we don't have to worry about it. The trick with this script is that it has to be signed/saved by the id of the server that code runs on. To do this:

-Get a copy of the server id.
-Create a local replica of the database where this will be stored.
-Open up the designer and switch to the server id
-Create a new agent that runs on an schedule (we do it every 8 hrs).
-Copy the code into the "initialize" section.
-Save the agent. (this HAS to be done with the server id)
-Switch back to your id
-replicate the database back to the server.

Now on the next scheduled run, the server will go through and add the "Administrators" group to all ACL's. However if the server or LocalDomainServers group doesn't have Manager access to the database then this will not work.

Code

On Error Goto oops

Dim sess As New NotesSession
Dim db As notesdatabase
Dim dbdir As New notesdbdirectory("")
 
Set db = dbdir.getfirstdatabase _(TEMPLATE_CANDIDATE)

Do While True
  If db Is Nothing Then
    Exit Sub
  Else
    Call db.open("","")
End If
   
'  UNcomment the commented lines to_ ignore mail files
' If Not (Instr _(1,db.filepath,"mail",5) > 0) Then
If db.QueryAccess("Administrators")< _ ACLLEVEL_MANAGER Then
Call db.GrantAccess("Administrators", ACLLEVEL_MANAGER)
 Print "Granted Administrators Access_ to: " & db.title
End If
  
' End If
  
Set db = dbdir.getnextdatabase
  
Loop
 
Exit Sub
 
oops:
Print "error occurred: " & Error$
Resume Next

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