[This is preliminary documentation and is subject to change.]

Creates the group or the organization and invites/adds users into it.

Namespace:  OfficeClip.DBLayer.Account
Assembly:  OfficeClip.DBLayer (in OfficeClip.DBLayer)
Version: 8.1.1.0

Syntax

C#
public int CreateGroup(
	string userList,
	string groupName,
	int tzId,
	ConfigureInfo session,
	bool isSendEmail,
	out int groupId
)
Visual Basic (Declaration)
Public Function CreateGroup ( _
	userList As String, _
	groupName As String, _
	tzId As Integer, _
	session As ConfigureInfo, _
	isSendEmail As Boolean, _
	<OutAttribute> ByRef groupId As Integer _
) As Integer
Visual C++
public:
int CreateGroup(
	String^ userList, 
	String^ groupName, 
	int tzId, 
	ConfigureInfo^ session, 
	bool isSendEmail, 
	[OutAttribute] int% groupId
)

Parameters

userList
Type: System..::.String
The list of comma separated userIds of the users to be added.
groupName
Type: System..::.String
The name of the group.
tzId
Type: System..::.Int32
The timezone id for the group
session
Type: OfficeClip.Utils..::.ConfigureInfo
The current login session
isSendEmail
Type: System..::.Boolean
Is the email supposed to be sent
groupId
Type: System..::.Int32%
The unique id of the organization

Return Value

the new groupId if successful, -100 if the group or the organization is already present. -2 if any of the invited users could not be added because an email could not be sent. -3 if any of the invited users could not be added because an alert could be created. -4 The member can not be added because accounting is enabled and the account where the user should belong could not be determined. -5 The member can not be added because accounting is enabled and the user already belongs to another account. -6 The member can not be added because accounting is enabled and the account has reached the number of users Limit. -7 The member can not be added because the site license user Limit has been reached.

See Also