Skip to content

identity Graph Node

Back to Index

Root Set Name: identities

Fields
createdAtDateTimeOffsetValue
identityIdUuidValue
lastModifiedDateTimeOffsetValue
propertiesIdentityPropertiesObject
typeEnumValue
Edges
NameTypeCardinality
activityLogsactivityLogMany
checkpointsmutationSetMany

What is an Identity?

An identity represents an authentication entity in Hantera. There are three types:

  • Principal (type: "principal") - Human users
  • Client (type: "client") - OAuth applications and integrations
  • System (type: "system") - Internal system processes

Properties Object

The properties field exposes a limited set of identity properties:

  • name - Display name
  • email - Email address (unique for principals)
  • phone - Phone number

Note: Identities may have additional properties in the database, but only these three are exposed via the Graph API.

Common Query Patterns

Query All Principals

POST https://<hantera-hostname>/resources/graph
Authorization: Bearer <YOUR TOKEN>
Content-Type: application/json
[
{
"edge": "identities",
"filter": "type == 'principal'",
"node": {
"fields": ["identityId", "type", "properties", "createdAt"]
}
}
]

Returns all human identities in the system.

Find Identity by Email

POST https://<hantera-hostname>/resources/graph
Authorization: Bearer <YOUR TOKEN>
Content-Type: application/json
[
{
"edge": "identities",
"filter": "type == 'principal' and properties.email == '[email protected]'",
"node": {
"fields": ["identityId", "properties"]
}
}
]

Email addresses are unique across all principals.

Query Clients

POST https://<hantera-hostname>/resources/graph
Authorization: Bearer <YOUR TOKEN>
Content-Type: application/json
[
{
"edge": "identities",
"filter": "type == 'client'",
"node": {
"fields": ["identityId", "properties"]
}
}
]

Returns OAuth client identities (system clients are excluded).

Managing Identities

Identity management (create, update, delete, suspend, password reset) is done via the IAM REST API, not through Graph queries.

See also:

Back to Index