@GetMapping("/profile")
	public Map<String, Object> getOne(User user) {
		checkNotEmpty(user.getUserId(), "UserID should not be NULL!");
		User one = userService.getOneWithEagerFetch(user.getUserId());

		Map<String, Object> viewConfig = new HashMap<>();
		viewConfig.put("allowPasswordChange", !config.isDemo());
		viewConfig.put("allowRoleChange", false);
		viewConfig.put("allowShareChange", true);
		viewConfig.put("showPasswordByDefault", false);
		viewConfig.put("userSecurityEnabled", config.isUserSecurityEnabled());

		Map<String, Object> model = new HashMap<>();
		model.put("user", one);
		model.put("config", viewConfig);

		return model;
	}
Get the current user profile.

@param user  current user
ngrinder-controller/src/main/java/org/ngrinder/user/controller/UserApiController.java