IUserManagerAddRole Method Ingeniux CMS Content Store API

Creates a new Group Role with specified Permissions.

Namespace: Ingeniux.CMS
Assembly: Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 9.0.565.0 (9.0.565)
Syntax

IGroupRole AddRole(
	string name,
	IUserRights permissions
)

Parameters

name
Type: SystemString
Name of the Group Role
permissions
Type: Ingeniux.CMSIUserRights
Permission for the role

Return Value

Type: IGroupRole
The Group Role that was created.
Exceptions

ExceptionCondition
ArgumentExceptionWhen the "name" parameter value is null or empty or the "permissions" parameter value is null
SecurityExceptionWhen the Operating User doesn't have administrative privileges.
Remarks

The new Group Role that was created was not yet saved to the Content Store. It will be saved when the Write Session is disposed.

See Also

Reference