UserManagerServicesSaveGroupRole Method Ingeniux CMS Web Services API

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: 9.0.565.0 (9.0.565)
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

Reference