---
title: "Add user to study"
method: POST
path: "/api/study/{studyId}/user"
tags: ["Memberships"]
---

# Add user to study

`POST /api/study/{studyId}/user`

## Request

- Base URL: `https://connectapi.medrio.com` (the document declares no server; this is the origin it was published from)
- URL: `https://connectapi.medrio.com/api/study/{studyId}/user`
- Auth: API key in header `Authorization`

## Path parameters

- `studyId` string, uuid, required: Global study ID or external ID

## Request body

- MembershipRequest
  - `roles` string[], nullable
  - `sites` string[], nullable
  - `email` string, email, required
  - `firstName` string, required
  - `isSso` boolean
  - `lastName` string, required
  - `userName` string, required
  - `allSitesAccess` boolean, nullable
  - `domainId` integer, nullable

## Response `201`

Success

- MembershipResponseEventResultWithResponse
  - `processedSuccessfully` boolean
  - `processMessage` string, nullable
  - `response` MembershipResponse
    - `email` string, nullable
    - `firstName` string, nullable
    - `lastName` string, nullable
    - `userId` integer
    - `userName` string, nullable
    - `domainId` integer

---

[API](https://skmtc.dev/medrio/apis/medrio-openapi-v-42-14-0-201.md) - [All operations](https://skmtc.dev/medrio/apis/medrio-openapi-v-42-14-0-201/llms.txt) - [OpenAPI document](https://skmtc.dev/medrio/apis/medrio-openapi-v-42-14-0-201/revisions/17293ddcbc0b?raw)
