This is primarily an internal function, but there may be a use case for it in your own development. Please note that this does not automatically give the new user permissions, however it does return the new id, so you can do that separately. Also note that this does not do any checking to make sure this email/username does not exist. That should be done first.