> ## 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 an existing vault user (non-component users only).

Master and Batch built-in users cannot be updated.

**Required Permissions for using this action**:

* `Add/Update Users`
* `Reset Password` (required to edit `changePassOnNextLogon`)

<Note>
  External Documentation

  To learn more, visit the [CyberArk documentation](https://docs.cyberark.com/pam-self-hosted/latest/en/content/webservices/users%20web%20services%20-%20update%20user.htm).
</Note>

## Basic Parameters

<div className="integrations-table">
  | Parameter           | Description                                                                                                                                                             |
  | ------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | Enable User         | Select to set the user as enabled or disabled.                                                                                                                          |
  | Location            | The vault location where the user account resides. Must be a valid vault path starting with backslash.                                                                  |
  | User ID             | The ID of the non-component user to update.                                                                                                                             |
  | User Type           | The type of user account based on your CyberArk license.                                                                                                                |
  | Username            | The username of the user.                                                                                                                                               |
  | Vault Authorization | Vault-level permissions granted to the user.<br /><br />**Note**: To apply specific authorizations to a user, the authenticated user must have the same authorizations. |
</div>

## Advanced Parameters

<div className="integrations-table">
  | Parameter                        | Description                                                                                                                                                                                                                                                                                                                                                                                                                                |
  | -------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
  | Authentication Method            | The authentication method this user will use to log in to the vault.                                                                                                                                                                                                                                                                                                                                                                       |
  | Business Address                 | The user's postal address object.<br /><br />For example:<br /><pre><code>\{<br />  "workStreet": "Kuritania street",<br />  "workCity": "Curitania",<br />  "workState": "Suritania",<br />  "workZip": "90211",<br />  "workCountry": "Ruritania"<br />}</code></pre>                                                                                                                                                                    |
  | Change Password On Next Logon    | Select whether or not the user must change their password after their first successful login.                                                                                                                                                                                                                                                                                                                                              |
  | Description                      | Optional notes or comments about the user.                                                                                                                                                                                                                                                                                                                                                                                                 |
  | Distinguished Name               | The user's distinguished name.                                                                                                                                                                                                                                                                                                                                                                                                             |
  | Expiry Date                      | The date and time when the user will expire.                                                                                                                                                                                                                                                                                                                                                                                               |
  | Internet                         | The user's email addresses and domains.<br /><br />For example:<br /><pre><code>\{<br />  "homePage": "example.com",<br />  "homeEmail": "[John@example.net](mailto:John@example.net)",<br />  "businessEmail": "[John@example.com](mailto:John@example.com)",<br />  "otherEmail": "[John@example.org](mailto:John@example.org)"<br />}</code></pre>                                                                                      |
  | Password                         | An initial password for the user account. Must comply with your organization's password policy requirements.                                                                                                                                                                                                                                                                                                                               |
  | Password Never Expires           | Select whether the user's first password will expire or remain valid indefinitely.                                                                                                                                                                                                                                                                                                                                                         |
  | Personal Details                 | The user's personal details.<br /><br />For example:<br /><pre><code>\{<br />  "street":"Main street",<br />  "city":"Curitania",<br />  "state":"Suritania",<br />  "zip":"90210",<br />  "country":"Ruritania",<br />  "title":"Mr. John",<br />  "organization":"Acme",<br />  "department":"newco",<br />  "profession":"Doing Job",<br />  "firstName":"John",<br />  "middleName":"Doe",<br />  "lastName":"Roe"<br />}</code></pre> |
  | Phones                           | The user's phone numbers.<br /><br />For example:<br /><pre><code>\{<br />  "homeNumber": "555-0100",<br />  "businessNumber": "555-0101",<br />  "cellularNumber": "0491 570 156",<br />  "faxNumber": "555-0102",<br />  "pagerNumber": "555-0103"<br />}</code></pre>                                                                                                                                                                   |
  | Unauthorized Interfaces          | CyberArk interfaces and applications that this user is prohibited from accessing.                                                                                                                                                                                                                                                                                                                                                          |
  | User Activity Log Retention Days | The number of days to retain this user's activity logs before automatic deletion.<br /><br />Set to `0` to disable activity logging entirely.                                                                                                                                                                                                                                                                                              |
</div>

## Example Output

```json theme={"dark"}
{
	"enableUser": true,
	"changePassOnNextLogon": false,
	"expiryDate": 1577836800,
	"suspended": false,
	"unAuthorizedInterfaces": [
		"GUI"
	],
	"authenticationMethod": [
		"AuthTypePass"
	],
	"allowedAuthenticationMethods": [
		"SAML",
		"PKI"
	],
	"passwordNeverExpires": true,
	"distinguishedName": "JohnDoeRoe",
	"description": "John Doe Roe",
	"businessAddress": {
		"workStreet": "Kuritania street",
		"workCity": "Curitania",
		"workState": "Suritania",
		"workZip": "90211",
		"workCountry": "Ruritania"
	},
	"internet": {
		"homePage": "example.com",
		"homeEmail": "John@example.net",
		"businessEmail": "John@example.com",
		"otherEmail": "John@example.org"
	},
	"phones": {
		"homeNumber": "555-0100",
		"businessNumber": "555-0101",
		"cellularNumber": "0491 570 156",
		"faxNumber": "555-0102",
		"pagerNumber": "555-0103"
	},
	"personalDetails": {
		"street": "Main street",
		"city": "Curitania",
		"state": "Suritania",
		"zip": "90210",
		"country": "Ruritania",
		"title": "Mr. John",
		"organization": "Acme",
		"department": "newco",
		"profession": "Doing Job",
		"firstName": "John",
		"middleName": "Doe",
		"lastName": "Roe"
	},
	"id": 24,
	"username": "JohnDR",
	"source": "CyberArk",
	"userType": "EPVUser",
	"componentUser": false,
	"vaultAuthorization": [
		"AuditUsers"
	],
	"location": "\\"
}
```

## Workflow Library Example

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