TenantCreateGroup(String, IEnumerableRoleDescription, IDictionaryDN, String) Method

Bulk creation of group

Definition

Namespace: TCX.Configuration
Assembly: 3cxpscomcpp2 (in 3cxpscomcpp2.dll) Version: 20.0.1
C#
Group CreateGroup(
	string name,
	IEnumerable<RoleDescription> roles = null,
	IDictionary<DN, string> members = null
)

Parameters

name  String
Name of the group (must be unique)
roles  IEnumerableRoleDescription  (Optional)
collection of roles in this group.
members  IDictionaryDN, String  (Optional)
Dictionary where keys are member's DN and value is XML description which defines member role and overrides of the rights for specific member

Return Value

Group
A new instance of Group populated with provided data

Remarks

Group object is created with Number initializaed with GRPnnnni> where nnnn is appended as a 4 digit number which makes Number of the Group unique
There is no special treatment of the Group Number value, so user code can assign any suitable value before initial saving.

See Also