public String getPrincipalId() {
        return ticketGrantingTicket.getAuthentication().getPrincipal().getId();
    }
Get principal id.

@return principal id
api/cas-server-core-api-events/src/main/java/org/apereo/cas/support/events/ticket/AbstractCasTicketGrantingTicketEvent.java