---
title: "List Assignments"
method: GET
path: "/api/v1/session-policies/{id}/assignments"
tags: ["Session Policy"]
---

# List Assignments

`GET /api/v1/session-policies/{id}/assignments`

List the principals assigned to a session policy, including both direct
 assignments and those conferred through a group.

## Path parameters

- `id` string, required — The session policy whose assignments to list.

## Query parameters

- `page_size` integer — The pageSize field.
- `page_token` string — The pageToken field.

## Response `200`

Successful response

- C1ApiSessionPolicyV1SessionPolicyServiceListAssignmentsResponse — The SessionPolicyServiceListAssignmentsResponse message.
  - `assignments` C1ApiSessionPolicyV1Assignment[], nullable — The assignments field.
    - `source` 'ASSIGNMENT_SOURCE_UNSPECIFIED' | 'ASSIGNMENT_SOURCE_DIRECT' | 'ASSIGNMENT_SOURCE_GROUP' — Whether the assignment is direct or conferred through a group.
    - `userId` string — The assigned user's ID.
  - `nextPageToken` string — The nextPageToken field.

---

[API](https://skmtc.net/conductorone/apis/c1-api.md) · [All operations](https://skmtc.net/conductorone/apis/c1-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/conductorone/c1-api/revisions/f2cf3228f366/schema)
