View as Markdown
Snipe-IT icon

Snipe-IT ACTION

Create User

Creates a new user in Snipe-IT with profile information required for asset or license assignments. See the documentation
  • Action
  • Writes data
  • Destructive
  • API key
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's Snipe-IT account once, then configure and run Create User from your backend or agent.

import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "snipe_it-create-user",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    snipe_it: { authProvisionId: "apn_xxxxxxx" },
    firstName: "First Name",
    username: "Username",
  },
})

console.log(result)

SCHEMA

Inputs

Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.

Create User inputs
Property Type Description
firstName First Name string
The first name of the user
Required
username Username string
The username for the user (required for login)
Required
password Password string
The password for the user account
Required
passwordConfirmation Password Confirmation string
The password confirmation for the user account
Required
lastName Last Name string
The last name of the user
Optional
email Email string
The email address of the user
Optional
activated Activated boolean
Whether the user account is activated
Optional
phone Phone string
The phone number of the user
Optional
jobtitle Job Title string
The job title of the user
Optional
managerId Manager integer
Select the manager for this user
Optional Dynamic
employeeNum Employee Number string
The employee number of the user
Optional
notes Notes string
Notes about the user
Optional
companyId Company integer
Select the company for this user
Optional Dynamic
twoFactorEnrolled Two Factor Enrolled boolean
Whether the user is enrolled in two-factor authentication
Optional
twoFactorOptIn Two Factor Opt In boolean
Whether the user has opted in to two-factor authentication
Optional
departmentId Department integer
Select the department for this user
Optional Dynamic
locationId Location integer
Select the location where this asset is located
Optional Dynamic
remote Remote boolean
Whether or not the user is a remote worker
Optional
groups Groups string[]
Select the groups for this user
Optional Dynamic
autoAssignLicenses Auto Assign Licenses boolean
Whether to automatically assign licenses to the user
Optional
vip VIP boolean
Whether this user is a VIP
Optional
startDate Start Date string
The user's start date (YYYY-MM-DD format)
Optional
endDate End Date string
The user's end date (YYYY-MM-DD format)
Optional

REFERENCE

Tool details

Behavior hints are published with the component in the Pipedream registry and surface as MCP tool annotations, so an agent can reason about a tool before it calls it.

Registry key
snipe_it-create-user
Version
0.0.2
App
Snipe-IT
Authentication
API key
Read-only
No
Destructive
Yes
Open world
Yes