private static String extractStringClaim(Map<String, Object> claims, String[] path) {
        if (path == null) {
            return null;
        }
        Object field = extractClaim(claims, path);

        if (field instanceof String value) {
            return value;
        }
        return null;
    }
The path to the claim to extract user display name
server/src/main/java/com/epam/aidial/core/server/security/IdentityProvider.java