I have one application, whenever someone signup in my application, then that user should be created in jbpm. So that whenever new tasks are added he can approve it. I am using rhpam jbpm business-central which is running on localhost. http://localhost:8080/business-central/kie-wb.jsp
I have googled how to create a user using API, swagger, or Programmatically So that as soon as the new user gets registered in my application that the user will be created in jbpm. But not found anything about it. Can you please help me?
Asked
Active
Viewed 626 times
2

S.R
- 113
- 11
2 Answers
1
After a month I found some APIS which we can use to perform operation on user, like add/update/delete/get users, groups and roles.
base url: http://localhost:8080/business-central/rest/
[GET] /roles – Get a list of all roles
[GET] /users – Get a list of all users
[GET] /groups – Get groups
[GET] /users/{userName}/groups – Get a list of groups assigned to a user
[GET] /users/{userName}/roles — Gets a list of roles assigned to a user
[POST] /users Creates users
[Post] /users/{userName}/changePassword – Changes user password
[POST] /groups — Creates groups
[POST] /users/{userName}/groups – Overrides the user assigned groups with new values
[POST] /users/{userName}/roles – Overrides the user assigned roles with new values
[Post] /groups/{groupName}/permissions – Updates permissions for a group
[Post] /roles/{roleName}/permissions – Updates permissions for a role
[GET] /groups/{groupName}/permissions –Get all permissions for a group
[GET] /roles/{roleName}/permissions –Get all permissions for a role
[GET] /users/{userName}/permissions –Get all permissions for a user
[DELETE] /users/{userName} – Deletes a given user
[DELETE] /groups/{groupName} Deletes a given groups

S.R
- 113
- 11
-
1Is there any documentation for this? I usually look for jbpm API documentation at http://localhost:8080/business-central/docs/ but these endpoints seem to be missing – Giuseppe Menegoz Nov 19 '21 at 18:02
1
You can find more info about REST API to manage users on the Red Hat site:
but I have a concern about changing roles for users. In my jBPM install, any change in role (eg. adding process-admin to an user or removing it) is effective only after a service restart.

TuxmAL
- 53
- 1
- 8