> ## 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 details of an existing user by their ID.

<Note>
  External Documentation

  To learn more, visit the [Zscaler Authentication Service documentation](https://automate.zscaler.com/docs/api-reference-and-guides/api-reference/zid/users/users-ops-update).
</Note>

## Basic Parameters

<div className="integrations-table">
  | Parameter     | Description                                                              |
  | ------------- | ------------------------------------------------------------------------ |
  | Department ID | The ID of the department to assign to the user.                          |
  | Display Name  | The display name of the user.                                            |
  | Login Name    | The unique login name of the user.                                       |
  | Primary Email | The primary email address of the user.                                   |
  | Status        | When selected, the user is active. When cleared, the user is disabled.   |
  | User ID       | The ID of the user to update. Can be obtained using `List Users` action. |
</div>

## Advanced Parameters

<div className="integrations-table">
  | Parameter         | Description                                                                                                                                                                                                                                                                                        |
  | ----------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | Custom Attributes | The user-defined custom attributes to assign to the user.<br /><br />**Note:** If `Custom Attributes` are defined in the tenant but not set as required, you must pass `{}` in the request.<br /><br />**For example:**<br /><pre><code>\{<br />  "additionalProp1" : "string"<br />}</code></pre> |
  | First Name        | The first name of the user.                                                                                                                                                                                                                                                                        |
  | Last Name         | The last name of the user.                                                                                                                                                                                                                                                                         |
  | Secondary Email   | The secondary email address of the user.                                                                                                                                                                                                                                                           |
</div>

## Example Output

```json theme={"dark"}
{
	"loginName": "john.test@example.com",
	"displayName": "John Test",
	"firstName": "John",
	"lastName": "Doe",
	"primaryEmail": "john.doe@example.com",
	"secondaryEmail": "john.alt@example.com",
	"department": {},
	"status": false,
	"customAttrsInfo": {
		"IntegrationTest": "value_123"
	},
	"id": "abc123def456g",
	"source": "API",
	"idp": {
		"id": "xyz789uvw012m",
		"name": "Example IdP"
	}
}
```

## Workflow Library Example

[Update User with Zscaler Authentication Service and Send Results Via Email](https://library.blinkops.com/workflows/update-user-with-zscaler-authentication-service-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-zscaler-authentication-service-and-send-results-via-email/canvas" />
</div>
