@GetMapping("/{userId}/detail")
	@PreAuthorize("hasAnyRole('A')")
	public Map<String, Object> getOneDetail(@PathVariable final String userId) {
		User one = userService.getOneWithEagerFetch(userId);

		Map<String, Object> viewConfig = new HashMap<>();
		viewConfig.put("allowPasswordChange", true);
		viewConfig.put("allowRoleChange", true);
		viewConfig.put("roleSet", EnumSet.allOf(Role.class));
		viewConfig.put("showPasswordByDefault", false);
		viewConfig.put("allowShareChange", true);
		viewConfig.put("userSecurityEnabled", config.isUserSecurityEnabled());


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

@param userId user to get
@return user details
ngrinder-controller/src/main/java/org/ngrinder/user/controller/UserApiController.java