29.2. Supported Security Management REST API endpoints
The Security Management REST API provides endpoints for managing groups, roles, users, and permissions in Business Central. It includes the security and permission management tasks that an administrator can also perform using the Security Management page in Business Central.
29.2.1. Groups リンクのコピーリンクがクリップボードにコピーされました!
The Security Management REST API supports the following endpoints for managing groups in Business Central. The Security Management REST API base URL is http://SERVER:PORT/decision-central/rest/. All requests require HTTP Basic authentication or token-based authentication for the admin user role.
- [GET] /groups
Returns all groups in Business Central.
Example server response (JSON)
[ { "group1" }, { "group2" } ]- [POST] /groups
Creates a group in Business Central. A group must have at least one user assigned.
Expand 表29.1 Request parameters Name Description Type Requirement body
Name of the group and users assigned to the new group
Request body
Required
Example request body (JSON)
{ "name": "groupName", "users": [ "userNames" ] }Example server response (JSON)
{ "status": "OK", "message": "Group newGroup is created successfully." }- [DELETE] /groups/{groupName}
Deletes a specified group from Business Central.
Expand 表29.2 Request parameters Name Description Type Requirement groupNameName of the group to be deleted
String
Required
Example server response (JSON)
{ "status": "OK", "message": "Group newGroup is deleted successfully." }