> For the complete documentation index, see [llms.txt](https://fusionauth.io/docs/llms.txt)

# HYPR Reconcile Lambda | FusionAuth Docs

An overview of the HYPR Reconcile lambda.

# HYPR Reconcile Lambda

[Edit on GitHub](https://github.com/FusionAuth/fusionauth-site/blob/main/astro/src/content/docs/extend/code/lambdas/reconcile/hypr-reconcile.mdx)

[View Markdown](https://fusionauth.io/docs/extend/code/lambdas/reconcile/hypr-reconcile.md)

When an HYPR identity provider is used to complete a federated login request FusionAuth will use the email address to reconcile the user. You may optionally utilize a lambda to customize the user and user registration during this authentication event.

When you create a new lambda using the FusionAuth UI we will provide you an empty function for you to implement.

## Lambda Structure[#](#lambda-structure)

If you are using the API to create the lambda you will need to ensure your function has the following signature:

```javascript
function reconcile(user, registration, context) {
  // Lambda code goes here
}
```

This lambda must contain a function named `reconcile` that accepts the following parameters:

*   `user` - the FusionAuth User object. You can modify this object. However, the **email** and **username** attributes may not be modified after the user has been linked.
*   `registration` - the FusionAuth UserRegistration object. You can modify this object.

*   `context` - Available since 1.64.0 - an object containing the context of the request, including access to [secrets](https://fusionauth.io/docs/extend/code/lambdas.md#secrets). This object is read-only.

The two FusionAuth objects are well documented here in the [User API](https://fusionauth.io/docs/apis/users.md) and [Registration API](https://fusionauth.io/docs/apis/registrations.md) documentation.

## Assigning The Lambda[#](#assigning-the-lambda)

Once a lambda is created, you may assign it to the HYPR identity provider in the IdP configuration.

Navigate to Settings -> Identity Providers and select your existing HYPR configuration or click Add provider and select HYPR if it has not yet been configured.