You can use AD groups to do this, Example: Create a "Reader" group in
AD, assign the Reader Group to the Reader Role in your WSS site.. Add
users to the AD Reader Group.
You could create code to add users, but that almost seems like overkill
for a one time shot.