ACL Roles

I want to do a mailsend using the all the people who are in a particular role. Is there any way i can do this? thanks.

Subject: Check out the NotesACL script class

I don’t think there is an easy solution to your problem. You should really try and use a different mechanism like groups to send mail.

If it’s not a possibility I suggest you have a look at the NotesACL & NotesACLEntry script classes. You would basically have to loop through all the NotesACLEntries to check if it contains the role you want to send mail for. You should be able to send mail with the NotesACLEntry.Name if it exist in the Domino Directory.

Also remember: that you can have people, servers and even database id’s in the ACL and that they can mixed in groups. Don’t forget about the default and anonymous acl entries.

Hope this helps :wink:

Subject: ACL Roles

This is really not a very good use of the Roles function. A role can be assigned to an individual, a group or a server. Plus a group can be a group of groups, and it can all get very confusing. If you have no other way you would have to loop through each ACLEntry in the ACL and build a list. To be sure that you have a valid entry you probably should look the name up in the NAB and if it is a group expand teh group and look the names up. It can get pretty ugly. We have done something along this line, but for an entirely different purpose, and recursing through groups to ensure valid names can become a bit confusing. The long and the short of it is I would look for a different method.