(% macro string_attr(dispname, name, value, editable, attribute) %) (% if scim_effective_access.search.check(attribute|as_ref) %)
(% endif %) (% endmacro %)
(% call string_attr("UUID", "uuid", person.uuid, false, Attribute::Uuid) %) (% call string_attr("SPN", "spn", person.spn, false, Attribute::Spn) %) (% call string_attr("Name", "name", person.name, true, Attribute::Name) %) (% call string_attr("Displayname", "displayname", person.displayname, true, Attribute::DisplayName) %) (% if let Some(description) = person.description %) (% call string_attr("Description", "description", description, true, Attribute::Description) %) (% else %) (% call string_attr("Description", "description", "none", true, Attribute::Description) %) (% endif %) (% if let Some(entry_managed_by) = person.managed_by %) (% call string_attr("Managed By", "managed_by", entry_managed_by.value, true, Attribute::EntryManagedBy) %) (% else %) (% call string_attr("Managed By", "managed_by", "none", true, Attribute::EntryManagedBy) %) (% endif %)