Take a look at the NotesDbDirectory class to loop through all the dbs on your server. Then use the NotesAcl.CreateACLEntry method to add a new entry to each db's acl