private boolean filterAgentByUserAuthorityAndUserId(Collection<? extends GrantedAuthority> authorities,
														String userId, String targetRegion, String targetSubregion, AgentInfo agentInfo) {
		if (isAdminOrSuperUser(authorities)) {
			return true;
		}

		if (isEmpty(agentInfo.getOwner())) {
			return true;
		}

		return StringUtils.equals(agentInfo.getOwner(), userId);
	}
Filter agent list using user authority and user id
ngrinder-controller/src/main/java/org/ngrinder/agent/controller/AgentManagerApiController.java