Ifd:updateUser

API version 2
public IfdUser updateUser (IfdUser user, String session_id ) throws IfdServerException

Function to update a user. Everything except GUID may be updated. Email must be unique in DB, otherwise not changed.

Input:
 * - User to be updated, any change to the GUID will be ignored.
 * session_id - The session id for the active user

Returns:
 * IfdUser - The updated user from DB.

API version 3
public IfdUser updateUser (                              String session_id,                                IfdUser user) throws IfdServerException

EXPRESS Heading QUERY FUNCTION updateUser(                     ifd_user : IfdUser): IfdUser;

The function updates information about IFD user.

Input: IfdUser user - target IFD user specification:
 * session_id - The session id for the active user
 * guid – unique IFD user id - login to database, it can be used to specify target IFD user or be subject to change – assigning the IFD user to another registered database login (in this case it shall be in upper case, target user will be found by email or name);
 * name – user unique name;
 * email – user unique e-mail address;
 * created_date – ignore in input;
 * role - name of the IFD user role (see getRoles);
 * member_of – (optional) user’s organization specified by guid, name or url – shall be specified for any users with access rights different from R/O

Returns:
 * IfdUser - The same IFD user with updated attributes.

Difference against v.2.00
 * (153)	In v.2.00 the function could not switch existing IFD user to another database account

Comments: