---
title: "Put someone in an app"
description: "Grant app access in one or more roles."
canonical: "https://grid82.com/docs/builder-api/members/add"
updated: "2026-11-13"
---

# Put someone in an app

`POST https://studio.grid82.app/v1/apps/{appId}/members`

Grant app access in one or more roles.

Access is the union of role grants; adding a role only adds access. An unknown email is added to the suite directory automatically; do not call `users.invite` first.

Requires the `members:write` scope. Operation `members.add`. MCP tool `members_add`. CLI: `grid82 members add` (`npx grid82`).

## Path parameters

| Name    | Type   | Required | Description |
| ------- | ------ | -------- | ----------- |
| `appId` | string | yes      |             |

## Headers

| Name              | Type   | Required | Description                                                                                                                                                                                                                                                        |
| ----------------- | ------ | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `Idempotency-Key` | string | no       | Any unique string. Sending the same key with the same request again returns the first response (marked `Idempotency-Replayed: true`) instead of running it twice. Reusing it for a different request is refused with 409. Kept for 24 hours. Up to 255 characters. |

## Request body

| Field    | Type      | Required | Description          |
| -------- | --------- | -------- | -------------------- |
| `userId` | string    | no       | Up to 64 characters. |
| `email`  | string    | no       |                      |
| `roles`  | string\[] | yes      |                      |

**Authorizations**

- `Authorization` (bearer, in header, required)

## Response

**201**: Success

- `data` (`object`, required)
- `data.userId` (`string`, required)
- `data.email` (`string`, required)
- `data.roles` (`string[]`, required)
- `data.status` (`string`, required)

```json
{
  "data": {
    "userId": "<string>",
    "email": "<string>",
    "roles": [
      "<string>"
    ],
    "status": "<string>"
  }
}
```

**4XX**: Refused

- `error` (`object`, required)
- `error.code` (`enum<string>`, required, one of: `not_found, forbidden, unauthenticated, validation_failed, conflict, rate_limited, payment_required, not_implemented, internal`)
- `error.message` (`string`, required)
- `error.details` (`Record<string, unknown>`)

```json
{
  "error": {
    "code": "not_found",
    "message": "<string>",
    "details": {}
  }
}
```

**Example request**

```bash
curl --request POST \
  --url 'https://studio.grid82.app/v1/apps/<appId>/members' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "roles": [
    "<string>"
  ]
}'
```
