> For the complete documentation index, see [llms.txt](https://openapi.logto.io/dev/llms.txt)

# Add user members to organization

> POST /api/organizations/{id}/users
> 
> Add users as members to the specified organization with the given user IDs.



## Servers
- Logto endpoint address.: https://[tenant_id].logto.app (Logto endpoint address.)


## Authentication methods
- O auth2


## Parameters

### Path parameters

- **id** (string)
  The unique identifier of the organization.



### Body: application/json (object)

- **userIds** (array[string])
  An array of user IDs to be added to the organization. Organization existed users assignment will be ignored.



## Responses
### 201
Users were added to the organization successfully.

#### Body: application/json (object)
- **userIds** (array[string])
  An array of user IDs processed from the request. This may include IDs that were already members of the organization.


### 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.


[Powered by Bump.sh](https://bump.sh)
