→Request
JSON
{
"name" : "NewUserGroupName",
"description" : "Ability to view activity and delete events",
"permissions" : ["VIEW_ACTIVITY", "TRACKING_DELETE"]
}
Key | Type | Summary | Child of |
---|---|---|---|
name |
String |
Name of the User Group to be created |
— |
description |
String |
Description of the purpose of the Server Group to be created |
— |
permissions |
String |
Permissions assigned to the User Group. A user that belongs to this User Group will have the same permissions |
— |
Using CURL on Windows
curl --basic -u admin:admin -d "{ \"name\" : \"TestUserGroup\", \"description\": \"This is a test\", \"permissions\": [\"VIEW_ACTIVITY\",\"TRACKING_DELETE\"] }" --header "Content-Type: application/json" http://localhost:8080/mmc/api/usergroups
Using CURL on Linux
curl --basic -u admin:admin -d '{ "name" : "TestUserGroup", "description": "This is a test", "permissions": ["VIEW_ACTIVITY","TRACKING_DELETE"] }' --header 'Content-Type: application/json' http://localhost:8080/mmc/api/usergroups
←Response
JSON
source
{ "name":"NewUserGroupName", "permissions":["VIEW_ACTIVITY","TRACKING_DELETE"], "description":"Ability to view activity and delete events", "href":"http://localhost:8080/mmc/api/groups/NewUserGroupName" }
Key | Type | Summary | Child of |
---|---|---|---|
name |
String |
Name of the User Group to be created |
— |
description |
String |
Description of the purpose of the Server Group to be created |
— |
permissions |
String |
Permissions assigned to the User Group. A user that belongs to this User Group will have the same permissions |
— |
href |
String |
Full link to the resource |
— |
Common Return Codes
201 |
The request has been fulfilled and resulted in a new UserGroup being created |
400 |
Invalid permissions requested |
500 |
Error while creating new User Group |
MMC Version
From |
3.3.0 |