vertx / io.vertx.rxjava.ext.auth.mongo / MongoAuth / insertUser

# insertUser

`open fun insertUser(username: String, password: String, roles: MutableList<String>, permissions: MutableList<String>, resultHandler: Handler<AsyncResult<String>>): Unit`

Insert a new user into mongo in the convenient way

### Parameters

`username` - the username to be set

`password` - the passsword in clear text, will be adapted following the definitions of the defined io.vertx.rxjava.ext.auth.mongo.HashStrategy

`roles` - a list of roles to be set

`permissions` - a list of permissions to be set

`resultHandler` - the ResultHandler will be provided with the id of the generated record