Click or drag to resize

AuthenticationAddUserToGroup(AuthenticationUserToken, String, String, String) Method

Note: This API is now obsolete.

Add user to group

Namespace: Crestron.SimplSharp.CrestronAuthentication
Assembly: SimplSharpHelperInterface (in SimplSharpHelperInterface.dll) Version: 2.21.121
Syntax
C#
[ObsoleteAttribute("Please use the overloaded AddUserToGroup so that the token can get updated dynamically")]
public static bool AddUserToGroup(
	AuthenticationUserToken utoken,
	string userName,
	string password,
	string groupName
)

Parameters

utoken  AuthenticationUserToken
User token obtained using GetAuthentication method
userName  String
User to be added to the group
password  String
NOT USED
groupName  String
Name of the group to add the user to

Return Value

Boolean
Flag indicating whether the user was added successfully to the group
Exceptions
ExceptionCondition
InvalidOperationExceptionAuthentication is not currently enabled on the controller.
AuthenticationPrivilegeExceptionHigher privileges are required to use this method.
AuthenticationDomainAccessExceptionProgram does not have access to the domain raise privilege.
ArgumentExceptionArguments provided to a method is not valid.
Remarks
The minimum firmware version required for this method is 1.009.0051.

Version Information

.NET

Obsolete (compiler warning) in 6.0

.NET Compact Framework

Obsolete (compiler warning) in 3.5
See Also