IAM Core

CoreRelationship

On this page

A CoreRelationship is a CoreIdentity's relationship to a CoreOrgUnit. An employment is an example of a relationship.

It carries everything that is true about a particular connection between a person and a part of the organisation rather than about the person themselves — the job title, the employee number, the dates it runs between. A person with two part-time positions has one CoreIdentity and two relationships.

Default attributes

All common attributes are available as well
TypeAttributeDescription
stringtitleJob or position title
stringemployeeIdEmployee number for this engagement
stringtypeClassification, for example Employee or Consultant
stringsubTypeFiner-grained classification within the type
stringpositionCodePosition or role code from the source system
stringofficeLocationPhysical work location
stringcategoryAdditional categorisation of the relationship
multi-valued stringcostCentersCost centres the relationship is charged to
datetimestartDateWhen the relationship starts
datetimeendDateWhen the relationship ends
reference to CoreOrgUnitorgUnitThe org unit the relationship is placed in
reference to CoreIdentityidentityThe identity that has the relationship to the CoreOrgUnit
reference to CoreIdentitymanagerNot really used, but available

Dates and validity

startDate and endDate are ordinary attributes — nothing removes a relationship when its end date passes. If you want a relationship to stop existing once it has ended, express that in the scope of the sync rule that creates it, using isdatetimebefore or isdatetimeafter. When the object falls out of scope the relationship is removed.

That approach also makes a grace period easy: adddays with a positive number keeps the relationship alive for a while after it formally ends, which is often what you want so that access is not cut off the moment a contract expires.

References

identity and orgUnit are what make a relationship useful, and both are set with asreference — you point at another connector object and IAM Core resolves it to whichever core object that object is joined to. identity and manager must resolve to a CoreIdentity, and orgUnit must resolve to a CoreOrgUnit.

A relationship depends on both the identity and the org unit existing, so if a reference comes out empty the usual cause is that the rule which should have created the target did not match — check that the referenced connector object is in scope of a rule of the right core object type.

Last updated 27 October 2026 Edit this page on GitHub
Esc