I've written a couple of scripts to do these kinds of tasks, i.e.: batch processing users, groups, pseudonyms, quota and ibays. I consider them still "beta", but if you're daring you can have a copy. Otherwise, wait a week or so for the final release on contribs.org.
Michiel