---
title: "Retrieve assignments by resource and/or membership"
method: GET
path: "/api/v2/organizations/{orgSlug}/assignments"
tags: ["Assignments"]
---

# Retrieve assignments by resource and/or membership

`GET /api/v2/organizations/{orgSlug}/assignments`

## Request

- Base URL: `https://app.officernd.com`
- URL: `https://app.officernd.com/api/v2/organizations/{orgSlug}/assignments`
- Auth: OAuth 2
  - Authorization code: `https://identity.officernd.com/auth/authorize`
  - Client credentials
  - Token URL: `https://identity.officernd.com/auth/token` scopes: `flex.space.assignments.read`

Get paged assignments. At least one of resource or membership is required. Supports single ids and array filters via $in (e.g. "/assignments?resource[$in]=id1,id2"). 

 Required scopes: `flex.space.assignments.read`

## Path parameters

- `orgSlug` string, required

## Query parameters

- `resource` string
- `membership` string
- `modifiedAt` string
- `createdAt` string
- `$select` string
- `$cursorNext` string
- `$cursorPrev` string
- `$limit` number

## Response `200`

- object
  - `rangeStart` number
  - `rangeEnd` number
  - `cursorNext` string
  - `cursorPrev` string
  - `results` AssignmentResultDto[]
    - `_id` string: The _id of the assignment.
    - `resource` string: The _id of the resource with which the assignment is associated.
    - `membership` string: The _id of the membership with which the assignment is associated.
    - `startDate` string, date-time: The start date of the assignment.
    - `endDate` string, date-time: The end date of the assignment.

---

[API](https://skmtc.dev/officernd/apis/space-api.md) - [All operations](https://skmtc.dev/officernd/apis/space-api/llms.txt) - [OpenAPI document](https://skmtc.dev/officernd/apis/space-api/revisions/f7e2e1e4ba60?raw)
