Skip to content
Proud to collaborate with Microsoft for Startups

data.identity.user.persist ​

Create or restore a User row keyed by cognito_sub

Persist a user record: create new, restore soft-deleted, or return existing.

Input: cognito_sub (required), username, email, plus optional profile fields. Output in state_data: user_uuid, persisted, restored, persisted_at.

Overview ​

PropertyValue
Workflow typeAtomic
LibraryApp-identity
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
cognito_substringYes——
usernamestringYes——
emailemailYes——
namestringNo——
avatar_urlstringNo——
auth_providerstringNo——
organization_uuiduuidNo——
actorstringNo——

Output Schema ​

FieldTypeRequiredDefaultDescription
user_uuiduuidYes——
persistedbooleanYes——
restoredbooleanYes——
persisted_atstringYes——
cognito_substringNo——
usernamestringNo——
emailemailNo——
namestringNo——
avatar_urlstringNo——
auth_providerstringNo——
organization_uuiduuidNo——
actorstringNo——
failure_reasonstringNo——
failure_typestringNo——
failed_actionstringNo——
failed_at_statestringNo——
failed_stepstringNo——
failed_layerstringNo——
errorstringNo——
error_typestringNo——

States ​

StateInitialTerminalSuccessAuto-advanceDescription
pendingYesNo—completePersist user
completedNoYesYes—Persisted
failedNoYesNo—Persist failed

State Diagram ​

Transitions ​

FromActionToDescription
pendingcompletecompleted—
pendingfailfailed—

API Usage ​

bash
POST /api/workflows/start
Content-Type: application/json

{
  "workflow_type": "data.identity.user.persist",
  "initial_data": {
    "cognito_sub": "value",
    "username": "value",
    "email": "value"
  }
}