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.492
Syntax
IGroupRole AddRole(
	string name,
	IUserRights permissions
)

Parameters

name  String
Name of the Group Role
permissions  IUserRights
Permission for the role

Return Value

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