5.2.7 RemoveUser Method

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

All Sessions and Subscriptions associated with the removed user shall be closed by 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.

If the user of the Session used to call the Method is to be removed, the Method shall fail with Bad_InvalidSelfReference.

Signature

	RemoveUser (
		[in]	String 		UserName
		);
	
Argument Description
UserNameThe name of the user to remove.

Method Result Codes

ResultCode Description
Bad_NotFound The specified user does not exist.
Bad_UserAccessDeniedThe caller does not have the necessary Permissions.
Bad_NotSupportedThe user cannot be deleted due to NoDelete user configuration mask setting.
Bad_SecurityModeInsufficientThe communication channel is not using encryption.
Bad_InvalidSelfReferenceThe user to remove is the user of the Session calling the Method.

The RemoveUser Method representation in the AddressSpace is formally defined in Table 30.

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