From b2323d44a6c3f31ea7c798f8a88c62878d5d2cdf Mon Sep 17 00:00:00 2001 From: Julien Tant Date: Fri, 14 Mar 2025 11:54:02 -0700 Subject: [PATCH] Add SAML and LDAP attr --- server/public/model/custom_profile_attributes.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/server/public/model/custom_profile_attributes.go b/server/public/model/custom_profile_attributes.go index 7ba291eb7ab..95eb8b26ade 100644 --- a/server/public/model/custom_profile_attributes.go +++ b/server/public/model/custom_profile_attributes.go @@ -31,6 +31,8 @@ func CustomProfileAttributesPropertySortOrder(p *PropertyField) int { const ( CustomProfileAttributesPropertyAttrsValueType = "value_type" CustomProfileAttributesPropertyAttrsVisibility = "visibility" + CustomProfileAttributesPropertyAttrsLDAP = "ldap" + CustomProfileAttributesPropertyAttrsSAML = "saml" ) const ( @@ -113,6 +115,8 @@ type CPAAttrs struct { SortOrder string `json:"sort_order"` Options PropertyOptions[*CustomProfileAttributesSelectOption] `json:"options"` ValueType string `json:"value_type"` + LDAP string `json:"ldap"` + SAML string `json:"saml"` } func (c *CPAField) ToPropertyField() *PropertyField { @@ -123,6 +127,8 @@ func (c *CPAField) ToPropertyField() *PropertyField { CustomProfileAttributesPropertyAttrsSortOrder: c.Attrs.SortOrder, CustomProfileAttributesPropertyAttrsValueType: c.Attrs.ValueType, PropertyFieldAttributeOptions: c.Attrs.Options, + CustomProfileAttributesPropertyAttrsLDAP: c.Attrs.LDAP, + CustomProfileAttributesPropertyAttrsSAML: c.Attrs.SAML, } return &pf