5.2.6 ModifyUser Method

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

If the UserConfiguration bit Disabled is changed to TRUE, all Sessions and Subscriptions associated with the disabled user shall be closed by the Server. If the user of the Session used to call the Method is to be disabled, the Method shall fail with Bad_InvalidSelfReference.

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

	ModifyUser (
		[in]	String 			UserName,
	[in]	Boolean 			ModifyPassword,
	[in]	String 			Password,
	[in]	Boolean 			ModifyUserConfiguration,
	[in]	UserConfigurationMask	UserConfiguration,
	[in]	Boolean 			ModifyDescription,
	[in]	String 			Description
		);
	
Argument Description
UserNameThe name of the user to modify.
ModifyPasswordFlag indicating if the password should be changed.
PasswordThe password for the user. The password is set to a null or empty string if ModifyPassword is false. The argument is ignored if ModifyPassword is false.
ModifyUserConfigurationFlag indicating if the user configuration should be changed.
UserConfigurationThe configuration mask for the user. The argument is ignored if ModifyUserConfiguration is false.
ModifyDescriptionFlag indicating if the user description should be changed.
DescriptionA description for the user. The argument is ignored if ModifyDescription is false.

Method Result Codes

ResultCode Description
Bad_NotFoundThe user was not found in the user management.
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_InvalidSelfReferenceThe user to be disabled is the user of the Session calling the Method.

The ModifyUser Method representation in the AddressSpace is formally defined in Table 29.

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