Click or drag to resize

UserManagerServicesSaveSingleGroup Method


Updates an existing User Group with new data

Namespace:  IngeniuxCMService
Assembly:  IngeniuxCMService (in IngeniuxCMService.dll) Version: 10.5.94
Syntax
public XHRServiceResponseGeneric<SaveGroupResult> SaveSingleGroup(
	SaveGroupInput data
)

Parameters

data
Type: SaveGroupInput

Object containing updated details of existing User Group

Examples
Sample JSON input
JavaScript
{
    "data": {
        "info": {
            "name": "Authors",
            "id": "UserGroups/1",
            "permissions": [1879685, 1665],
            "newEntry": false
        },
        "users": ["ingeniux\\author", "ingeniux\\dhillis", "ingeniux\\shauns"]
    }
}

Return Value

Type: XHRServiceResponseGenericSaveGroupResult

The basic information of the update User Group, plus information of which Users were affected with this update.

Examples
Sample JSON return
JavaScript
{
    "code": 0,
    "error": null,
    "message": {
        "name": "Authors",
        "groupId": "UserGroups\/1",
        "pcrsCount": 1,
        "secRootsCount": 0,
        "usersAffected": {
            "added": ["User\/ingeniux___dhillis", "User\/ingeniux___shauns"],
            "removed": ["User\/ingeniux___dhillis", "User\/ingeniux___shauns"]
        },
        "usersCount": 3,
        "wfDefsCount": 1
    }
}
See Also