Create/update authentication groups
POST/v1/authentication/groups
Creates/updates existing authentication groups. To create or update groups, you need to send all these groups in the payload. With every update, all running user sessions will be terminated, so the users need to login again. To delete a group, you need to exclude this group from the payload that you send to update groups. With every deletion, all running user sessions will be terminated, so the users need to login again.
Example 1. Create groups called group1
and group2
. The payload will contain [ { \"group\": \”group1\”, \"userRole\": \”USER_ROLE_READONLY\” }, { \"group\": \”group2\”, \"userRole\": \”USER_ROLE_ADMIN\” }]
. As a result, the two groups will be created with specified permissions.
Example 2. Update existing groups called group1
and group2
. The payload will contain [ { \"group\": \”group1\”, \"userRole\": \”USER_ROLE_ADMIN” }, { \"group\": \”group2\”, \"userRole\": \”USER_ROLE_READONLY\” }]
. As a result, the two groups will be updated with specified permissions.
Example 3. Delete group called group1
from the existing two groups: group1
and group2
. The payload will contain [{ \"group\": \”group2\”, \"userRole\": \”USER_ROLE_READONLY\” }]
. As a result, group1
will be deleted, as it is excluded from the payload.
Please ensure to change the region in the URL to match your account's region.
Request
- application/json
Body
arrayrequired
- Array [
- ]
Group name
User role
Responses
- 200
successful operation
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
Group name
User role
[
{
"group": "group",
"userRole": "role"
}
]