Technote

(troubleshooting)
updatePerson method of MemberFacadeClient modifies the credentials of the Administrator user rather than target customer
Problem(Abstract)
You notice using the updatePerson() method of the MemberFacadeClient API to update credentials of a registered shopper causes the credentials of the Administrator user to be modified instead. The API is called as an Administrator user (for example: CSR).
Resolving the problem By default, the updatePerson service operates on the user that is authenticated (logged on). This same behavior occurs in the UserRegistrationUpdateCmd which the service is mapped to. In order to update another user's information, you need need to add the forUser or forUserId parameter to the application area, similar to how they set the storeID:

//Example of using forUserId

ContextDataType forUserId = commerceFoundationFactory.eINSTANCE.createContextDataType();
forUserId.setName("forUserId");
forUserId.setValue("-1004");
iBusinessContext.getContextData().add(forUserId);
Cross Reference information
Segment Product Component Platform Version Edition
Commerce WebSphere Commerce - Express Customization / Application Development Linux, Windows 6.0
Commerce WebSphere Commerce Professional Edition Customization / Application Development AIX, Linux, Solaris, Windows 6.0
Commerce WebSphere Commerce Developer Enterprise Customization / Application Development Windows 6.0
Commerce WebSphere Commerce Developer Professional Edition Customization / Application Development Windows 6.0
Commerce WebSphere Commerce Developer Express Customization / Application Development Windows 6.0
   

Document Information

Current web document: http://www.ibm.com/support/docview.wss?uid=swg21271175