Skip to main content

Profile attributes

Cloud has the newest features. Some may not be in a release yet; the newest release is Identity & Access Management 7.3.0.

Profile attributes define the shape of data that can be stored on a profile for your organization. They control attribute names, types, mutability, and how values are resolved when two profiles are merged.

Together, the set of profile attributes defined for your organization makes up the profile attribute schema.


Scopes​

Profile attributes are organized into three scopes:

ScopeDescription
identity_attributesAttributes sourced from the identity system (e.g. email, phone, name from WSO2 Identity Platform claims)
traitsBehavioral or preference data managed by the application (e.g. language, segments)
application_dataPer-application attributes, scoped by the application's ID

Attribute fields​

FieldRequiredDescription
attribute_nameyesDot-notation path including scope prefix
display_namenoHuman-readable label
value_typeyesOne of the supported data types (see below)
merge_strategyyesHow to resolve the value when two profiles are merged
mutabilityyesRead/write behavior (see below)
multi_valuednoIf true, the attribute holds an array of the declared type
canonical_valuesnoEnumerated allowed values (for string attributes)
sub_attributesnoChild attributes when value_type is complex
application_identifieryes, for application_dataThe ID of the application the attribute is scoped to

Supported value types​

TypeDescription
stringPlain text
integerWhole number
decimalFloating-point number
booleantrue / false
dateCalendar date
date_timeDate and time
epochUnix timestamp (milliseconds)
complexNested object, define child fields in sub_attributes

Mutability​

Mutability controls whether an attribute value can be changed once set.

ValueMeaning
readWriteCan be freely read and updated
readOnlySystem-managed, cannot be updated by applications (e.g. meta.created_at)
writeOnlyCan be written but not read back
immutableMust be set at creation, cannot be changed (e.g. profile_id)
writeOnceCan be empty initially; once set, cannot be updated (e.g. user_id)

Merge strategies​

When two profiles are unified, the merge strategy for each attribute decides which value wins.

StrategyBehavior
overwriteThe incoming profile's value replaces the existing one
combineBoth values are combined into an array (requires multi_valued: true)

Core attributes​

These attributes are built into every profile and cannot be modified:

AttributeTypeMutability
profile_idstringimmutable
user_idstringwriteOnce
meta.created_atdate_timereadOnly
meta.updated_atdate_timereadOnly
meta.locationstringreadOnly

Staying in sync with WSO2 Identity Platform​

identity_attributes mirror the claim dialects in WSO2 Identity Platform. When a claim is added, updated, or deleted, the service automatically reconciles its local attribute set so the two stay aligned, no manual action is needed.


Was this page helpful?