User Creation from Api

1
0
-1

Hi Team,

I created user from API like below api format,
User Creation from API
var creareData = {
"userName": "1234",
"password": '123',
"password_confirm": '123',
"icon": "",
"firstname": "aaa",
"lastname": "a",
"title": "Mr",
"job_title": "Testing",
"manager_id": "",
"enabled": "true"
};

$.ajax({
url: "@AppConfig.RootBonitaURL/bonita/API/identity/user",
type: "POST",
contentType:"application/json",
xhrFields: { withCredentials: true },
headers: { 'X-Bonita-API-Token': apiuserToken },
data: JSON.stringify(creareData),
success: function (data, textStatus, jqXHR) { }
});

User is successfully created in Bonita Api but the user is not showing in the bonita tool user list. Please check it once and provide the solution. For more clarification, contact me again.
`
Regards,
Kiran Cherukuri.

1 answer

1
0
-1

Hi,

I guess that by "the user is not showing in the bonita tool user list" you refer to the user list in the Bonita Portal application.

After the creation of a user via the Rest API you need to add the user to a Bonita Portal profile. A user who does not have a profile cannot log in to Bonita Portal.

For that you should leverage the following API: API/portal/profileMember. Here is the link to the detailed documentation .

best

Comments

Submitted by kiran.cherukuri... on Fri, 08/16/2019 - 12:47

Hi,

I added the user to Profile member with the URL
http://localhost:8080/bonita/API/identity/profileMember

and parameters are

{
"profile_id":"2",
"member_type":"USER",
"user_id":"302"
}
But finally method is not finding and I got the response like "Could not get any response"

There was an error connecting to http://localhost:8080/bonita/API/identity/profileMember.

Please check it once and provide the solution ASAP.

Submitted by miguel.valdes on Tue, 08/20/2019 - 11:59

Hi,

Could you please share the error stack trace?

best

Notifications