---
title: "Add users to organization"
method: POST
path: "/rest/servicedeskapi/organization/{organizationId}/user"
tags: ["Organization"]
---

# Add users to organization

`POST /rest/servicedeskapi/organization/{organizationId}/user`

## Request

- Base URL: `https://your-domain.atlassian.net`
- URL: `https://your-domain.atlassian.net/rest/servicedeskapi/organization/{organizationId}/user`
- Auth: OAuth 2
  - Authorization code: `https://auth.atlassian.com/authorize`
  - Token URL: `https://auth.atlassian.com/oauth/token` scopes: `manage:servicedesk-customer`

This method adds users to an organization.

**[Permissions](#permissions) required**: Service desk administrator or agent. Note: Permission to add users to an organization can be switched to users with the Jira administrator permission, using the **[Organization management](https://confluence.atlassian.com/servicedeskcloud/setting-up-service-desk-users-732528877.html#Settingupservicedeskusers-manageorgsManageorganizations)** feature.

## Path parameters

- `organizationId` integer, required

## Request body

- UsersOrganizationUpdateDTO
  - `accountIds` string[]: List of customers, specific by account IDs, to add to or remove from the organization.
  - `organizationId` integer: The organizationId in which users need to be added
  - `usernames` string[]: This property is no longer available and will be removed from the documentation soon. See the [deprecation notice](https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-user-privacy-api-migration-guide/) for details. Use `accountIds` instead.

## Response `204`

Returned if all the users were valid and added to the organization, no response payload is provided.

## Other responses

- `400`: Returned if one or more usernames are unknown.
- `401`: Returned if the user is not logged in.
- `403`: Returned if the user does not have permission to complete this request.
- `404`: Returned if the organization does not exist.
- `500`: Internal Server Error.

## Changes

> 20 revisions in range; 3 not diffed.

- **2024-02-08** `7c79c3ffe305`: 1 info
  - added the new optional request property `organizationId`

[Operation history](https://skmtc.dev/atlassian/apis/service-management-public-rest-api/changes/rest/servicedeskapi/organization/:organizationId/user/post.md)

---

[API](https://skmtc.dev/atlassian/apis/service-management-public-rest-api.md) - [All operations](https://skmtc.dev/atlassian/apis/service-management-public-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/atlassian/apis/service-management-public-rest-api/revisions/fe02b1260fc7?raw)
