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
Parameters
- name
- Type: SystemString
Name of the Group Role - permissions
- Type: Ingeniux.CMSIUserRights
Permission for the role
Return Value
Type: IGroupRoleThe Group Role that was created.
Exceptions
Exception | Condition |
---|---|
ArgumentException | When the "name" parameter value is null or empty or the "permissions" parameter value is null |
SecurityException | When 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