---
title: "Replace organization user members"
method: PUT
path: "/api/organizations/{id}/users"
tags: ["Organizations"]
---

# Replace organization user members

`PUT /api/organizations/{id}/users`

Replace all user members for the specified organization with the given users. This effectively removing all existing user memberships in the organization and adding the new users as members.

## Path parameters

- `id` string, required

## Request body

- object
  - `userIds` string[], required — An array of user IDs to replace existing users.

## Response `204`

Successfully replaced all users for the organization.

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `422` — At least one of the IDs provided is not valid. For example, the organization ID or user ID does not exist.

---

[API](https://skmtc.net/logto/apis/logto-api-references.md) · [All operations](https://skmtc.net/logto/apis/logto-api-references/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/logto/logto-api-references/versions/a163dc77d842/schema)
