> For the complete documentation index, see [llms.txt](https://docs.octoxlabs.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.octoxlabs.com/action-center/okta/update-user.md).

# Update User

Updates the profile of each user asset it receives in Okta: first name, last name, email and mobile phone. Values you enter in the node are used first; anything you leave empty falls back to the value on the asset.

### Before you begin

* **Integration:** An Okta organization and an Okta API token that is allowed to perform this action. Enter **Okta Domain** and **API Token** in the node, or save them once for all Okta jobs in [Action Center Settings](broken://pages/8a57c2aaa5eed18d0d5540189f060790ee6b7a21). Okta jobs share Okta Domain, API Token and Request Timeout.
* **Asset type:** user (`allowed_asset_types`).
* **Required column:** **Email** for user assets. Assets without a value in Email are ignored.
* **Okta user ID:** the asset must also carry an Okta user ID (stored in the asset's Specifics data under `okta` > `id`). Assets without it are skipped.
* **Defaults:** values you saved for this job in [Action Center Settings](broken://pages/8a57c2aaa5eed18d0d5540189f060790ee6b7a21) pre-fill the node, and any option you leave out is filled from them when you save.

### Settings

| Setting         | Type   | Required | Default | Description                                                                        |
| --------------- | ------ | -------- | ------- | ---------------------------------------------------------------------------------- |
| Okta Domain     | Text   | Yes      | None    | Your Okta domain (e.g., dev-12345.okta.com).                                       |
| API Token       | Text   | Yes      | None    | Your Okta API token with appropriate permissions. Not marked as a sensitive field. |
| First Name      | Text   | No       | None    | User's first name. Can be left blank.                                              |
| Last Name       | Text   | No       | None    | User's last name. Can be left blank.                                               |
| Email           | Email  | No       | None    | User's email address. Can be left blank.                                           |
| Mobile Phone    | Text   | No       | None    | User's mobile phone number. Can be left blank.                                     |
| Request Timeout | Number | No       | 30      | Timeout in seconds for API requests.                                               |

No setting is marked as sensitive, so none is masked after saving.

### How it works

* **One request per asset.** For every user asset that has an **Email** and an Okta user ID (stored in the asset's Specifics data under `okta` > `id`), the job sends `POST https://<Okta Domain>/api/v1/users/<user ID>` with a `profile` object. Assets without an Okta user ID are skipped and a debug message is written to the log.
* **First name, last name, mobile phone.** The value from the node is used. If it is empty, the job uses the asset's FirstName, LastName or MobilePhone column, then the value in the asset's Okta profile data. A field with no value anywhere is not sent.
* **Email.** If you enter an Email that differs from the asset's current Email, both `email` and `login` are changed to it. If the field is empty or the same as the asset's Email, the email is not changed. The value is the same for every asset, so set it only when the workflow acts on a single user.
* **Because of the fallbacks,** the job normally sends a request for every asset with an Okta user ID, even when all four fields in the node are empty.
* **Result is not checked.** The job does not read Okta's response. If Okta rejects a request (for example because of a wrong token, an unknown ID or a duplicate user), the job still ends normally and the workflow continues. Check the outcome in Okta.
* **Next node.** The job passes the assets it received on to the next node unchanged.

### Example

A condition node collects one user, then this node writes a new mobile phone number to the Okta profile. Values:

| Setting      | Value                           |
| ------------ | ------------------------------- |
| Okta Domain  | your-org.example.com            |
| API Token    | YOUR\_API\_TOKEN                |
| First Name   | (empty, use the asset value)    |
| Last Name    | (empty, use the asset value)    |
| Email        | (empty, keep the current email) |
| Mobile Phone | +1 555 0100                     |

### How it differs from related jobs

* [Create User without Credentials](broken://pages/120258f9282304c96a1e7d80f6901c7b32599d49): Creates a user from the asset data.

### What's next?

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>About Action Center</strong></td><td>Workflows, triggers, conditions and job nodes.</td><td><a href="broken://pages/315fa8e4cbcf1b89147ad9e6fc5e9d9a2372ba0d">Broken link</a></td></tr><tr><td><strong>Action Center Settings</strong></td><td>Save Okta defaults once for every Okta job.</td><td><a href="broken://pages/8a57c2aaa5eed18d0d5540189f060790ee6b7a21">Broken link</a></td></tr><tr><td><strong>Create User without Credentials</strong></td><td>Creates a user from the asset data.</td><td><a href="broken://pages/120258f9282304c96a1e7d80f6901c7b32599d49">Broken link</a></td></tr></tbody></table>

{% hint style="info" %}
Available starting from version 6.3.0.
{% endhint %}
