public void updateUser(String userDBID, User user) throws ProvisioningApiException {
		try {
			ApiSuccessResponse resp = usersApi.updateUser(userDBID, new UpdateUserData().data(Converters.convertUserToUpdateUserDataData(user)));

			if (!resp.getStatus().getCode().equals(0)) {
				throw new ProvisioningApiException("Error updating user. Code: " + resp.getStatus().getCode());
			}
        } catch(ApiException e) {
        	throw new ProvisioningApiException("Error updating user", e);
        }
	}
public void updateUser ( String userDBID , User user ) throws ProvisioningApiException { try { ApiSuccessResponse resp = usersApi . updateUser ( userDBID , new UpdateUserData ( ) . data ( Converters . convertUserToUpdateUserDataData ( user ) ) ) ; if ( ! resp . getStatus ( ) . getCode ( ) . equals ( 0 ) ) { throw new ProvisioningApiException ( "Error updating user. Code: " + resp . getStatus ( ) . getCode ( ) ) ; } } catch ( ApiException e ) { throw new ProvisioningApiException ( "Error updating user" , e ) ; } }
Updates the attributes of a user with the given DBID.
@param userDBID the DBID of the user to be updated. (required)
@param user the new attributes of the user. (required)
@throws ProvisioningApiException if the call is unsuccessful.