Click or drag to resize

IUserManagerAddRole Method


Creates a new Group Role with specified Permissions.

Namespace:  Ingeniux.CMS
Assembly:  Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 10.6.308
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