Create user API problem

Hello,
I use API in order to create user in WAZO by calling /api/confd/1.1/users. It create user successfully, but in the WAZO dashboard when I click on the created user, I got user not found error as follow:

user:
Details
GET http://localhost:9497/0.1/users/2e2667ce-a1d9-478d-8458-c0b7dcbaecae: {‘message’: ‘No such user: “2e2667ce-a1d9-478d-8458-c0b7dcbaecae”’, ‘error_id’: ‘unknown-user’, ‘details’: {‘uuid’: ‘2e2667ce-a1d9-478d-8458-c0b7dcbaecae’}, ‘timestamp’: 1619812929.4564512, ‘resource’: ‘users’}

Is this a bug or a problem in my user creation payload?

Hello,

You need to create an authentication for this user in wazo-auth with the same UUID.

Sylvain

1 Like

Unfortunately I couldn’t find any API related to creating authentication a user with UUID in wazo-auth. Would you please send me it’s path?

Hello,

Endpoint for auth is /users with body (POST)

{
  "email_address": "string",
  "enabled": true,
  "firstname": "string",
  "lastname": "string",
  "password": "string",
  "purpose": "user",
  "username": "string",
  "uuid": "string"
}