Adding names dynamically in roles thru lotusscript?

how can i add names of those users which are getting when my client based application runs into the roles i created “USERS” thru lotusscript.i think first i need to get those names thru lotusscripts and using those names i have to add it into a role called ‘USERS’,

pls help me how i can do this ?

Subject: adding names dynamically in roles thru lotusscript?

It’s generally not a good idea to have a lot of usernames in the ACL list – for one thing, there’s a limit to the number of ACL entries allowed. Instead, create a group and add the group name to the ACL, and assign roles to the group. Then you can add users to the role by adding them to the group – which usually will be done manually, but you can automate by looking up the group record and setting the value of the Members field, if you choose.

Subject: adding names dynamically in roles thru lotusscript?

In the Designers Help yuo will find plenty samples of updating the databases ACL. Look for NotesACL and NotesACLEntry classes