5.2.5 AddUser Method

This Method is used to add a user to the user management of the Server.

The Client shall use an encrypted channel and shall provide user credentials with administrator rights like SecurityAdmin Role when invoking this Method on the Server.

Signature

	AddUser (
		[in]	String 			UserName,
	[in]	String 			Password,
	[in]	UserConfigurationMask	UserConfiguration,
	[in]	String 			Description
		);
	
Argument Description
UserNameThe name of the user to add.
PasswordThe password for the user.
UserConfigurationThe configuration mask for the user.
DescriptionA description for the user.

Method Result Codes

ResultCode Description
Bad_AlreadyExists The user does already exist.
Bad_OutOfRangeThe password is outside the valid range of accepted length and characters.
Bad_NotSupportedThe UserConfiguration has flags set that are not supported by the Server. See PasswordOptions for flags supported by the Server.
Bad_ConfigurationErrorThe UserConfiguration has invalid combinations of flags set.
Bad_UserAccessDeniedThe caller does not have the necessary Permissions.
Bad_SecurityModeInsufficientThe communication channel is not using encryption.
Bad_ResourceUnavailableThe Server does not have enough resources to add the user.

The AddUser Method representation in the AddressSpace is formally defined in Table 28.

Table 28 – AddUser Method AddressSpace definition
Attribute Value
BrowseNameAddUser
References Node Class BrowseName DataType TypeDefinition Other
0:HasPropertyVariable0:InputArguments0:Argument[] 0:PropertyTypeM
ConformanceUnits
Security User Management Server