View as Markdown
OneLogin icon

OneLogin ACTION

Update User

Update an existing user's details in OneLogin. See the documentation
  • Action
  • Writes data
  • Destructive
  • OAuth
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's OneLogin account once, then configure and run Update 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-update-user",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    onelogin: { authProvisionId: "apn_xxxxxxx" },
    userId: "User ID",
    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.

Update User inputs
Property Type Description
userId User ID string
The ID of the user
Required Dynamic
username Username string
The user's username
Optional
email Email string
The user's email address
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-update-user
Version
0.0.2
App
OneLogin
Authentication
OAuth
Read-only
No
Destructive
Yes
Open world
Yes