OneLogin ACTION
Create User
Create a new user in OneLogin with details. See the documentation
- Action
- Writes data
- OAuth
- SDK
- MCP
IMPLEMENTATION
Call this tool
Connect a user's OneLogin 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: "onelogin-create-user",
externalUserId: "{external_user_id}", // any stable ID for this user in your system
configuredProps: {
onelogin: { authProvisionId: "apn_xxxxxxx" },
username: "Username",
email: "Email",
},
})
console.log(result)curl -X POST https://api.pipedream.com/v1/connect/{project_id}/actions/run \
-H "Content-Type: application/json" \
-H "X-PD-Environment: production" \
-H "Authorization: Bearer {access_token}" \
-d '{
"external_user_id": "{external_user_id}",
"id": "onelogin-create-user",
"configured_props": {
"onelogin": { "authProvisionId": "apn_xxxxxxx" },
"username": "Username",
"email": "Email"
}
}'// accessToken: mint a short-lived token with the Connect SDK — see the MCP guide
const transport = new StreamableHTTPClientTransport(
new URL("https://remote.mcp.pipedream.net/v3"),
{
requestInit: {
headers: {
Authorization: `Bearer ${accessToken}`,
"x-pd-project-id": "{project_id}",
"x-pd-environment": "production",
"x-pd-external-user-id": "{external_user_id}", // any stable ID for this user in your system
"x-pd-app-slug": "onelogin",
},
},
},
)
const mcp = new Client({ name: "my-agent", version: "1.0.0" })
await mcp.connect(transport)
const { tools } = await mcp.listTools()
// listTools() hands your model this tool's input schema, so it can
// fill the arguments itself:
const result = await mcp.callTool({
name: "onelogin-create-user",
arguments: {
username: "Username",
email: "Email",
},
})SCHEMA
Inputs
Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.
| Property | Type | Description |
|---|---|---|
username Username | string | The user's username (required if email is not provided) Optional |
email Email | string | The user's email address (required if username is not provided) Optional |
firstname First Name | string | The user's first name Optional |
lastname Last Name | string | The user's last name Optional |
password Password | string | The password to set for the user Optional |
passwordConfirmation Password Confirmation | string | Required if the password is being set Optional |
passwordAlgorithm Password Algorithm | string | Use this when importing a password that's already hashed. See the documentation for further information Optional |
salt Salt | string | The salt value used with the Password Algorithm Optional |
title Title | string | The user's job title Optional |
department Department | string | The user's department Optional |
company Company | string | The user's company Optional |
comment Comment | string | Free text related to the user Optional |
groupId Group ID | integer | The ID of the Group in OneLogin that the user will be assigned to Optional Dynamic |
roleIds Role IDs | integer[] | A list of OneLogin Role IDs the user will be assigned to Optional Dynamic |
phone Phone | string | The E.164 format phone number for a user Optional |
state State | string | The user's state Optional |
status Status | string | The user's status Optional |
directoryId Directory ID | integer | The ID of the OneLogin Directory the user will be assigned to Optional |
trustedIdpId Trusted IDP ID | integer | The ID of the OneLogin Trusted IDP the user will be assigned to Optional |
managerUserId Manager User ID | string | The OneLogin User ID for the user's manager Optional Dynamic |
samaccountname SAM Account Name | string | The user's Active Directory username Optional |
memberOf Member Of | string | The user's directory membership Optional |
userPrincipalName User Principal Name | string | The principle name of the user Optional |
distinguishedName Distinguished Name | string | The distinguished name of the user Optional |
externalId External ID | string | The ID of the user in an external directory Optional |
openidName OpenID Name | string | The name configured for use in other applications that accept OpenID for sign-in Optional |
invalidLoginAttempts Invalid Login Attempts | integer | The number of sequential invalid login attempts the user has made Optional |
preferredLocaleCode Preferred Locale Code | string | The 2-character language locale for the user, such as en for English or es for Spanish. Optional |
customAttributes Custom Attributes | object | An object to contain any other custom attributes you have configured Optional |
mappings Mappings | string | Controls how mappings will be applied to the user on creation. Optional |
validatePolicy Validate Policy | boolean | Will passwords validate against the User Policy? 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
- onelogin-create-user
- Version
- 0.0.2
- App
- OneLogin
- Authentication
- OAuth
- Read-only
- No
- Destructive
- No
- Open world
- Yes
- Source
- View on GitHub ↗