Login
Free Sign Up
Docs
/

Auth - Space Identity Create

Type identifier: auth:space-identity:create Category: Auth Operations

Description

The Auth - Space Identity Create node creates a new Space Identity within a Space, allowing users to authenticate and access the Space's Experiences. It assigns a role to the Space Identity, determining the user's permissions.

Input Handles

Handle

Type

Description

trigger

control

Triggers Space Identity creation.

displayName

string

(Optional) Display name for the Space Identity.

claimValue

string

(Shown only when a JWT strategy is selected; required) The value of the strategy's client ID claim that resolves to this Space Identity. 1 to 500 characters.

Output Handles

Handle

Type

Description

spaceIdentityId

string

The ID of the created Space Identity.

success

control

Triggered when the Space Identity is created.

error

control

Triggered when creation fails.

Configuration Options

Option

Type

Default

Description

Authentication Strategy

string

required

The authentication strategy.

Space Role

string

required

Role to assign to the new Space Identity.

Authentication Strategy

Selects which authentication strategy configuration to use:

  • Defines Space Identity cohort to add to
  • For a JWT strategy (see Authenticate Requests with a JWT), the claimValue input is required. A token carrying that claim value authenticates as this Space Identity. A claim value maps to one Space Identity per strategy; creating a second Space Identity with the same value triggers error.

Role Assignment

Assigns a Space role to the Space Identity:

  • Determines access permissions
  • Controls Experience visibility
  • Affects data access rules

Behaviour

  1. Receives trigger with display name (and, for JWT strategies, claim value)
  2. Creates the Space Identity (for JWT strategies, with its claim value)
  3. Assigns specified role
  4. Returns the created Space Identity

Identity Properties

Created Space Identity includes:

  • Unique ID
  • Display name
  • Assigned role
  • Creation timestamp
  • Authentication strategy reference

Examples

User Registration

Flow:

  1. Flow - Trigger: Registration form submission
  2. Validate input data
  3. Auth - Space Identity Create: Create the Space Identity
  4. Auth - Magic Link Generate: Create verification link
  5. Integration - SMTP: Send welcome email

Configuration:

  • Authentication Strategy: (Magic Link strategy)
  • Space Role: (member role)

Invite User

Flow:

  1. Admin triggers invite
  2. Auth - Space Identity Create: Create invited user
  3. Auth - Magic Link Generate: Create login link
  4. Integration - SMTP: Send invitation email

Assign Different Roles

Configuration varies by use case:

  • New customer: "customer" role
  • Team member: "member" role
  • Administrator: "admin" role

Related pages