create user

This block is part of the users group and was last modified in core v14.0.4.

create user v14.0.4

create a new user in your cluster

In pins 7 + flow
  • flow
    flow
  • User ID required
    value

    The ID of the user (eg: username, email, code)

  • Password required
    value

    Password or passcode for the user

  • User Data
    mutations

    Optional: Extra data for the user account

  • expiry
    date

    The user will be removed after this date

  • username sanitize v13.0.8
    condition

    If true all special characters (Besides _,-,+,@,.) will be removed from the username.

  • allow login as v14.0.4
    condition

    Allow admins to sign in as this user without their password

  • allow passwordless login v14.0.4
    condition

    Allow this user to sign in without a password (only for non-admin users)

Out pins 3 + flow
  • flow
    flow
  • User
    object
  • success v10.4.29
    condition

    Returns false in case of an error

  • error v10.4.29
    value

    Return the error in case of an error

A typical wiring for create user: true feeds the username_sanitize pin; branch feeds the flow pin; set fields feeds the mutations pin; value feeds the user_id pin; value feeds the password pin; the flow out pin feeds branch; the error out pin feeds log; the function out pin wires to an execute block.

Studio canvas example for the create user block: typical wiring for create user.

Commonly used with

In production blueprints, this block is most often wired together with:

  • branch: wired in both directions with this block.
  • true: feeds into this block. Gives the condition true hard-coded.
  • log: this block feeds into it.
  • set fields: feeds into this block. Generates an array of mutations based on the given filled fields.
  • get fields: this block feeds into it. Gets the selected fields from the given object.
  • new object: this block feeds into it. Builds a new object filled with the given fields.

Version history

Introduced in v14.0.4.

v13.0.8 This block or one of its pins was updated in v13.0.8, click here to see the release notes. v10.4.29 This block or one of its pins was updated in v10.4.29, click here to see the release notes.
Back to users Return to the main group to view all sub-groups Back to user management Return to the group to view all blocks within this group