[TIBCO.EMS .NET Admin client library 5.1 documentation]

Add the user for the given userName to the group for the given groupName.

Namespace:  TIBCO.EMS.ADMIN
Assembly:  TIBCO.EMS.ADMIN (in TIBCO.EMS.ADMIN.dll)

Syntax

public void AddUserToGroup(
	string groupName,
	string userName
)
Public Sub AddUserToGroup ( _
	groupName As String, _
	userName As String _
)
public:
void AddUserToGroup(
	String^ groupName, 
	String^ userName
)

Parameters

groupName
Type: System..::.String
The group that the user will be added to.
userName
Type: System..::.String
The user to be added.

Exceptions

ExceptionCondition
TIBCO.EMS.ADMIN..::.AdminExceptionif not authorized or an error occurred.
TIBCO.EMS.ADMIN..::.AdminInvalidNameException if the names of the group or the user are not legal.

See Also