Cannot create users Via Rest API

1
0
-1

I am new to Bonita using version 7.7.3 and trying to create a new user using the rest api within POSTMAN.
I logged in with a rest request to http://localhost:8080/bonita/loginservice and it returns an X-Bonita-API-Token.
I have been able to login using 2 different default users:
{
"password": "bpm",
"userName": "walter.bates"
}

{
"password": "install",
"userName": "install"
}

I am able to log into either user just fine. I then use that api token to then make the request to create a new user as shown in the Postman screenshots below. Using the following URL:
http://localhost:8080/bonita/API/identity/user

request_bonita_1.png
request_bonita_2.png

The request always comes back as 401 not authorized. Is there a special setting I need to set in order to be able to create users? How can I go about setting permissions so that I have the ability to create a user from the rest API?

1 answer

1
0
-1

I guess the issue is just in the name of the header: it should be X-Bonita-API-Token instead of xBonitaAPIToken.

I checked the documentation page and the header name seems correct. Can you let me know where did you find the name xBonitaAPIToken?

Notifications