@GetMapping(path = "{principal}", produces = MediaType.APPLICATION_JSON_VALUE)
    @Operation(summary = "Get consent decisions for principal",
        parameters = @Parameter(name = "principal", required = true, description = "The principal to look up"))
    public Collection<Map<String, Object>> consentDecisions(
        @PathVariable
        final String principal) {
        val result = new HashSet<Map<String, Object>>();
        LOGGER.debug("Fetching consent decisions for principal [{}]", principal);
        val consentDecisions = consentRepository.getObject().findConsentDecisions(principal);
        LOGGER.debug("Resolved consent decisions for principal [{}]: [{}]", principal, consentDecisions);

        consentDecisions.forEach(d -> {
            val map = new HashMap<String, Object>();
            map.put("decision", d);
            map.put("attributes", consentEngine.getObject().resolveConsentableAttributesFrom(d));
            result.add(map);
        });
        return result;
    }
Consent decisions collection.

@param principal the principal
@return the collection
support/cas-server-support-consent-core/src/main/java/org/apereo/cas/consent/AttributeConsentReportEndpoint.java