@PutMapping("/{userId}")
	@PreAuthorize("hasAnyRole('A')")
	public User update(User user, @PathVariable("userId") String userId, User update) {
		update.setUserId(userId);
		checkNull(update.getId(), "User DB ID should be null");
		return save(update, user.getUserId());
	}
Update the user.

@param userId user id
@param update update user
@return json message
ngrinder-controller/src/main/java/org/ngrinder/user/controller/UserApiController.java