We are using the RegisterNewUser from Registration class to programmatically new Notes users.
Aside from other properties, we use the GroupList property to add a new user to a list of groups.
This works as long as ALL groups from the list exist. If a group does not exist, the RegisterNewUser method throws an exception ( NOT tested with LotusScript ) and the registration aborts.
This should not happen.
check group availability prior to registration
add user to all available groups and report groups that are not available
add user to all groups; create groups that are not available. ( similar to addGroupMembers (AdministrationProcess - Java™))
At least, the registration process should not abort.