Create new user through REST API

I’m trying to create a new user using the REST API.
I use both the UI offered in the REST API web pages and Postman do doublecheck.
The user get created but is unable to login even if I specify that he does not have to change the password.
Do I need to execute some more API call to complete the user creation?
When I try to login with the new user I get the message “e is undefined”.
but I do not understand what is “e”.
Thanks
Luca

Post the request you’re making and the response so we don’t have to guess what you’re doing?

Sure!
Here is the code:
curl -u “{CATTLE_ACCESS_KEY}:{CATTLE_SECRET_KEY}”
-X POST
-H ‘Accept: application/json’
-H ‘Content-Type: application/json’
-d ‘{“description”:“testing user”, “me”:false, “mustChangePassword”:false, “name”:“test”, “password”:“testpasswd”, “principalIds”:[], “username”:“test”}’
https://tst-kubemaster.pochdp.csi.it/v3/users

HTTP/1.1 POST /v3/users
Host: tst-kubemaster.pochdp.csi.it
Accept: application/json
Content-Type: application/json
Content-Length: 142

{

"description": "testing user",
"me": false,
"mustChangePassword": false,
"name": "test",
"password": "testpasswd",
"principalIds": [ ],
"username": "test"

}

This is done using the form in the “/v3/users” path of the rancher portal.
When I log out as admin and try to enter with the newly created user I get an error " e is undefined " at login.

Any feedback on this?
I’m on 2.0.6 but is still not working.
This is a problem for automated processes.
Is there some other API to invoke after the one mentioned or is there a bug?
Thanks
Luca