# List who can reach a project

Source: https://openpanel.sh/docs/api/projects/list-who-can-reach-a-project

Every member with their own grant on this project, or null where their organization role decides.

`GET https://openpanel.sh/api/v1/projects/{projectId}/access`

## Parameters

| Name | In | Required | Description |
|---|---|---|---|
| `projectId` | path | yes | The project's id. |
| `limit` | query | no | How many items to return, 1 to 100. Default 50. |
| `cursor` | query | no | The nextCursor of the previous page. |

## Responses

| Status | Meaning | Body |
|---|---|---|
| 200 | List who can reach a project | `application/json`, `ProjectGrantPage` |
| 401 | No valid credential was sent. | `application/problem+json`, `Problem` |
| 403 | The credential may not do this. | `application/problem+json`, `Problem` |
| 404 | Not found, or not visible to this credential. | `application/problem+json`, `Problem` |
| 422 | The input was refused; detail says why. | `application/problem+json`, `Problem` |
| 429 | Too many requests; wait for Retry-After seconds. | `application/problem+json`, `Problem` |

## Schemas

### Problem

```json
{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "description": "A link to the error's explanation in the docs."
    },
    "title": {
      "type": "string"
    },
    "status": {
      "type": "integer"
    },
    "code": {
      "type": "string",
      "description": "Stable machine-readable code: not_found, forbidden, invalid, conflict, rate_limited, not_implemented, …"
    },
    "detail": {
      "type": "string",
      "description": "What went wrong, in a sentence written for a person."
    }
  },
  "required": [
    "type",
    "title",
    "status",
    "code",
    "detail"
  ]
}
```

### ProjectGrant

```json
{
  "type": "object",
  "properties": {
    "userId": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "email": {
      "type": "string"
    },
    "role": {
      "type": "string"
    },
    "access": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "none",
            "view",
            "deploy",
            "admin"
          ]
        },
        {
          "type": "null"
        }
      ],
      "description": "Their own access to this project, or null when their organization role decides."
    }
  },
  "required": [
    "userId",
    "name",
    "email",
    "role",
    "access"
  ]
}
```

### ProjectGrantPage

```json
{
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/ProjectGrant"
      }
    },
    "nextCursor": {
      "description": "Pass as cursor for the next page; null on the last.",
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": [
    "data",
    "nextCursor"
  ]
}
```