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

# insertUser

`abstract 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 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