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 .