# Rehire user flow

A **rehire** happens when a previously terminated user returns to the organization and their identity is reactivated instead of being created again.

A rehire occurs when:

* A former employee comes back to the company
* A contractor returns for a new engagement
* Someone is re-employed after a break

Instead of creating a new identity, OpenIAM recognizes the person and restores the account.

The same rehire flow works in both scenarios:

* The user is **Terminated** and still exists in the target system.
* The user is **Terminated** and no longer exists in the target system.

The example below uses Active Directory as the target system.

### User exists in Active Directory

{% stepper %}
{% step %}

#### Sign in to SelfService

{% endstep %}

{% step %}

#### Open Manage User

Go to **Access Management** → **Manage User** and search for the user you want to rehire.

<figure><img src="/files/2fbed49972ed4e5f2adef9c02e46af8e356711a5" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

#### Select a user

Select the username from the results list.

<figure><img src="/files/c9fa0e11253f80890f2a96499d3e75aa4929cd83" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

#### Update contract data

Update the **Contract Start date**, **End date**, **Vice Presidency**, and any other required fields. Set **Rehire User** to **Yes**, then select **Save**.

<figure><img src="/files/a359046920bd03b51cca9280b53357e9f7cc9bca" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}

### User does not exist in Active Directory

{% stepper %}
{% step %}

#### Check AD

Confirm that the user does not exist in Active Directory.

<figure><img src="/files/543500cdb5b8ec389731d218fa03a56409109b96" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

#### Activate user in OpenIAM

Activate the user in OpenIAM. OpenIAM then creates a new account in Active Directory.

<figure><img src="/files/45aff42091d3cf112d9bc661f2a878d5dab07c20" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/32edb8672248da9b97507f854c60dc13fa6b53b5" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}

After the workflow is complete, the user’s line manager receives a notification about the user's status.

![](/files/e12fed61f72a5cf2e56dd8e7398e449cb4be8869)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs-beta.openiam.com/automated-user-provisioning/rehire-user-flow.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
