> For the complete documentation index, see [llms.txt](https://docs.navigaglobal.com/navigaid/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.navigaglobal.com/navigaid/integrations/customer-integration/moving-to-a-new-identity-provider.md).

# Moving to a New Identity Provider

## Retaining subject IDs in Naviga ID

Moving to a new identity provider will, most of the time, involve a new subject ID for the user, resulting in a new subject ID in Naviga ID as well. To retain the users Naviga ID subject ID, the `http://infomaker.io/originalSubject` claim can be added to the organization token. This claim should consist of the subject ID the user had in the previous identity provider.

```
{
    "sub": "subject-id-from-current-idp"
    "http://infomaker.io/originalSubject": "subject-id-from-previous-idp"
    ...
}
```

When encountering the `http://infomaker.io/originalSubject` claim, Naviga ID will replace the previous subject ID stored internally with the subject ID found in the `sub` claim.
