> ## 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).

## Basic Parameters

| 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. |

## Advanced Parameters

| 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. async: Mappings will be run after the API returns a response sync: Mappings will be run before the API returns a response 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`. |

## 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
}
```
