Writing my first agent and would like a bit of code to get me started.
Scenario: We have a database with Full ACL, manually tidying up the ACL & deleting old accounts etc would take forever. I have created a view listing just the names of the valid current employees by ACL format name/domain.
I need to loop through the ACL picking out each person and compare it to $$usersview. If the person is not in the view delete them.
Put all valid employees in groups. Put groups in ACLs. In the case of this ACL, use your Domino Admin client to copy an empty ACL from another db and paste it onto this db, then add the valid user groups. It might mean that you have to figure out who should be in what group and allowed to do what, but udnerstanding that and having people set up according to what they should be allowed to do is even more important than removing names that don’t have server access anyway.
If you continue to put individual usernames into ACLs, be sure to enable ACL Advanced tab, Administration server = [servername where you delete people], and have AdminP running on that server.