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.5.94
Syntax public XHRServiceResponseGeneric<GroupRoleInfo[]> SaveGroupRole(
GroupRoleData data
)
Public Function SaveGroupRole (
data As GroupRoleData
) As XHRServiceResponseGeneric(Of GroupRoleInfo())
public:
virtual XHRServiceResponseGeneric<array<GroupRoleInfo^>^>^ SaveGroupRole(
GroupRoleData^ data
) sealed
abstract SaveGroupRole :
data : GroupRoleData -> XHRServiceResponseGeneric<GroupRoleInfo[]>
override SaveGroupRole :
data : GroupRoleData -> XHRServiceResponseGeneric<GroupRoleInfo[]>
Parameters
- data
- Type: GroupRoleData
Object containing the Role name and its User Permissions.
Examples
Sample JSON input
{
"data": {
"roleName": "Check in",
"permissions": [1879683, 1669]
}
}
Return Value
Type:
XHRServiceResponseGenericGroupRoleInfoThe collection of existing Group Roles after the removal, sorted alphabetically
Examples
Sample JSON return
{
"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