I tried to use this script of yours, that seems to be doing the trick, but keep getting an error message:
./create-user 'Test User Four' me@[domain] test4 41 default
Creating user: test4 user test4 created. . . Adding to group 41. . . {"errors":["You supplied invalid parameters to the request: usernames"],"error_type":"invalid_parameters"}
Can’t figure out, what have I done wrong. Also, is it possible not to set group and password here?