@Override
              public void perform(UserEntity userEntity) {
                if (isValueChanged(request.isActive(), userEntity.getActive())) {
                  userEntity.setActive(request.isActive());
                }

                if (isValueChanged(request.getLocalUserName(), userEntity.getLocalUsername())) {
                  userEntity.setLocalUsername(request.getLocalUserName());
                }

                if (isValueChanged(request.getDisplayName(), userEntity.getDisplayName())) {
                  userEntity.setDisplayName(request.getDisplayName());
                }
              }
Updates the users specified.

@param requests the users to modify
@throws AmbariException          if the resources cannot be updated
@throws IllegalArgumentException if the authenticated user is not authorized to update all of
                                 the requested properties
ambari-server/src/main/java/org/apache/ambari/server/controller/internal/UserResourceProvider.java