Add a new user with a specific uid and gid
One solution would be to write a simple script to do the whole job at once.   

dscl . -create /Users/ali UniqueID 549 PrimaryGroupID 320 RealName "Ali Moeeny" 


Or something like that.