Click or drag to resize

UserManagerServicesSaveGroupRole Method


Creates or Updates a Group Role. If a Group Role with given name exists, its permissions are updated; Otherwise, new Group Role is created.

Namespace:  IngeniuxCMService
Assembly:  IngeniuxCMService (in IngeniuxCMService.dll) Version: 10.3.169
Syntax
public XHRServiceResponseGeneric<GroupRoleInfo[]> SaveGroupRole(
	GroupRoleData data
)

Parameters

data
Type: GroupRoleData

Object containing the Role name and its User Permissions.

Examples
Sample JSON input
JavaScript
{
    "data": {
        "roleName": "Check in",
        "permissions": [1879683, 1669]
    }
}

Return Value

Type: XHRServiceResponseGenericGroupRoleInfo

The collection of existing Group Roles after the removal, sorted alphabetically

Examples
Sample JSON return
JavaScript
{
    "code": 0,
    "error": null,
    "message": [{
        "name": "Edit",
        "id": "GroupRoles\/34",
        "permissions": [1879681, 1879681]
    }, {
        "name": "Edit and Delete",
        "id": "GroupRoles\/33",
        "permissions": [1896069, 1896069]
    }, {
        "name": "Editing and Publishing",
        "id": "GroupRoles\/2",
        "permissions": [1879689, 1879689]
    }] 
}
See Also