> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Update User

Update the attributes of a user in OneLogin.

<Note>
  External Documentation

  To learn more, visit the [OneLogin documentation](https://developers.onelogin.com/api-docs/2/users/update-user).
</Note>

## Basic Parameters

<div className="integrations-table">
  | Parameter             | Description                                                                      |
  | --------------------- | -------------------------------------------------------------------------------- |
  | Comment               | A comment about the user.                                                        |
  | Company               | The company the user belongs to.                                                 |
  | Department            | The user's department.                                                           |
  | Email                 | A valid email for the user.                                                      |
  | First Name            | The user's first name.                                                           |
  | Job Title             | The user's job title.                                                            |
  | Last Name             | The user's last name.                                                            |
  | Password              | The user's password.                                                             |
  | Password Confirmation | Confirm the password. Required if the password is being set.                     |
  | Phone Number          | The [E.164 format](https://en.wikipedia.org/wiki/E.164) phone number for a user. |
  | User ID               | The ID of the user.                                                              |
  | Username              | A username for the user.                                                         |
</div>

## Advanced Parameters

<div className="integrations-table">
  | Parameter                   | Description                                                                                                                                                                                                                                             |
  | --------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | Active Directory Manager ID | The ID of the user's manager in Active Directory.                                                                                                                                                                                                       |
  | Active Directory Username   | The users Active Directory username.                                                                                                                                                                                                                    |
  | Custom Attributes           | An object to contain any other custom attributes you have configured.                                                                                                                                                                                   |
  | Directory ID                | The ID of the OneLogin Directory the user will be assigned to.                                                                                                                                                                                          |
  | Directory Membership        | The user's directory membership.                                                                                                                                                                                                                        |
  | Distinguished Name          | The distinguished name of the user.                                                                                                                                                                                                                     |
  | External ID                 | The ID of the user in an external directory.                                                                                                                                                                                                            |
  | Group ID                    | The ID of the Group in OneLogin that the user will be assigned to. Can be obtained using `Get Groups` action.                                                                                                                                           |
  | Invalid Login Attempts      | The number of sequential invalid login attempts the user has made.                                                                                                                                                                                      |
  | Mappings                    | Controls how mappings will be applied to the user on update.<br />async: Mappings will be run after the API returns a response<br />sync: Mappings will be run before the API returns a response<br />disabled: Mappings will not be run for this user. |
  | OneLogin Manager ID         | The OneLogin User ID of the user's manager.                                                                                                                                                                                                             |
  | OpenID Name                 | The name configured for use in other applications that accept OpenID for sign-in.                                                                                                                                                                       |
  | Password Algorithm          | Use this when importing a password has already been hashed. For more information refer to [OneLogin's Documentation](https://developers.onelogin.com/api-docs/2/users/update-user).                                                                     |
  | Preferred Locale Code       | The 2-character language locale for the user, such as `en` for English or `es` for Spanish.                                                                                                                                                             |
  | Role IDs                    | A list of OneLogin Role IDs the user will be assigned to.                                                                                                                                                                                               |
  | Salt                        | The salt value that was used with the password\_algorithm.                                                                                                                                                                                              |
  | State                       | The state of the user.                                                                                                                                                                                                                                  |
  | Status                      | The status of the user.                                                                                                                                                                                                                                 |
  | Trusted Idp ID              | The ID of the OneLogin Trusted IDP the user will be assigned to.                                                                                                                                                                                        |
  | User Principal Name         | The principle name of the user.                                                                                                                                                                                                                         |
  | Validate Policy             | whether passwords be validated against the `User Policy`.                                                                                                                                                                                               |
</div>

## Example Output

```json theme={"dark"}
{
	"created_at": "2020-07-16T03:29:41.420Z",
	"id": 87735981,
	"state": 1,
	"department": null,
	"email": null,
	"last_login": null,
	"password_changed_at": "2020-07-16T03:29:41.377Z",
	"preferred_locale_code": null,
	"firstname": "Scuba",
	"status": 1,
	"userprincipalname": null,
	"title": null,
	"role_ids": [],
	"custom_attributes": {
		"food": null,
		"employeenumber": null
	},
	"lastname": "Steve",
	"updated_at": "2020-07-16T03:29:41.420Z",
	"member_of": null,
	"phone": null,
	"company": null,
	"username": "scuba.steve",
	"manager_ad_id": null,
	"activated_at": null,
	"samaccountname": null,
	"directory_id": null,
	"external_id": null,
	"group_id": null,
	"invalid_login_attempts": 0,
	"invitation_sent_at": null,
	"trusted_idp_id": null,
	"comment": null,
	"distinguished_name": null,
	"locked_until": null,
	"manager_user_id": null
}
```

## Workflow Library Example

[Update User with Onelogin and Send Results Via Email](https://library.blinkops.com/workflows/update-user-with-onelogin-and-send-results-via-email)

<div className="iframe-wrapper">
  <div className="iframe-media">
    <img src="https://mintcdn.com/blinkops-2/ojHYuDeYX5FWuN8a/img/Icons/play-box.svg?fit=max&auto=format&n=ojHYuDeYX5FWuN8a&q=85&s=b8af968e71438a9499c3223c9bd29fb2" alt="Workflow Library" width="16" height="16" data-path="img/Icons/play-box.svg" />

    Preview this Workflow on desktop
  </div>

  <iframe className="iframe" src="https://library.blinkops.com/workflows/update-user-with-onelogin-and-send-results-via-email/canvas" />
</div>
