Sorry, title should have been "delegated", not "deleted".
I already had a custom web flow setup, so I just remapped the attributes and added them back into the principal attributes:
val authentication = WebUtils.getAuthentication(context);
Principal principle = authentication.getPrincipal();
Map<String, List<Object>> attributesMap = principle.getAttributes();
remapAttribute(attributesMap, "Email", "upn");
private void remapAttribute(Map<String, List<Object>> attributesMap, String keyToAdd, String keyToCopy) {
if(!attributesMap.containsKey(keyToAdd) && attributesMap.containsKey(keyToCopy)) {
attributesMap.put(keyToAdd, Arrays.asList(attributesMap.get(keyToCopy).get(0)));
}
}