如何通过 API 或在 jbpm rhpam BPMN kie-server 中以编程方式创建用户

How to create a user by API or Programmatically in jbpm rhpam BPMN kie-server

我有一个应用程序,每当有人在我的应用程序中注册时,就应该在 jbpm 中创建该用户。这样无论何时添加新任务,他都可以批准。我在本地主机上使用 运行 的 rhpam jbpm business-central。 http://localhost:8080/business-central/kie-wb.jsp 我在 google 上搜索了如何使用 API、swagger 或以编程方式创建用户,这样一旦新用户在我的应用程序中注册,该用户就会在 jbpm 中创建。但没有找到任何关于它的信息。你能帮帮我吗?

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

您可以在 Red Hat 站点上找到有关 REST API 以管理用户的更多信息:

https://access.redhat.com/documentation/en-us/red_hat_process_automation_manager/7.8/html-single/interacting_with_red_hat_process_automation_manager_using_kie_apis/index#security-management-rest-api-con_kie-apis

但我担心用户角色的更改。在我的 jBPM 安装中,角色的任何更改(例如,向用户添加 process-admin 或删除它)仅在服务重新启动后才有效。