---
title: "Move all users from one tenant to another"
method: PUT
path: "/resources/users/v1/tenants/migrate"
tags: ["Users"]
---

# Move all users from one tenant to another

`PUT /resources/users/v1/tenants/migrate`

## Request

- Base URL: `http://localhost:8181`
- URL: `http://localhost:8181/resources/users/v1/tenants/migrate`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/frontegg/apis/entitlements-agent-pdp/docs/resources/users/v1/tenants/migrate/put.ts> (a function with typed inputs; its response is checked against the schema)

This route migrates all the users from the source tenant to the target. Specify in the request body the srcTenantId (the source tenant ID) and targetTenantId (the target tenant ID). A vendor token is required for this route, it can be obtained from the vendor authentication route.

## Request body

- MigrateUsersFromTenantToTenantRequest
  - `srcTenantId` string, required
  - `targetTenantId` string, required

## Response `200`

---

[API](https://skmtc.dev/frontegg/apis/entitlements-agent-pdp.md) - [All operations](https://skmtc.dev/frontegg/apis/entitlements-agent-pdp/llms.txt) - [OpenAPI document](https://skmtc.dev/frontegg/apis/entitlements-agent-pdp/revisions/c496ae9e1c3e?raw)
