---
title: "Get space role assignments"
method: GET
path: "/spaces/{id}/role-assignments"
tags: ["Space Roles"]
---

# Get space role assignments

`GET /spaces/{id}/role-assignments`

Retrieves the space role assignments.

Available on tenants with [Role-Based Access Control](https://support.atlassian.com/confluence-cloud/docs/manage-user-roles/). 

**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:
Permission to view the space.

## Path parameters

- `id` integer, required

## Query parameters

- `role-id` string
- `role-type` string
- `principal-id` string
- `principal-type` 'USER' | 'GROUP' | 'ACCESS_CLASS' — The principal type.
- `cursor` string
- `limit` integer

## Response `200`

Returned if the requested space role assignments are retrieved.

- object
  - `results` SpaceRoleAssignment[]
    - `principal` Principal — The principal of the role assignment.
      - `principalType` 'USER' | 'GROUP' | 'ACCESS_CLASS' — The principal type.
      - `principalId` string — The principal ID.
    - `roleId` string — The role to which the principal is assigned.
  - `_links` MultiEntityLinks
    - `next` string — Used for pagination. Contains the relative URL for the next set of results, using a cursor query parameter. This property will not be present if there is no additional data available.
    - `base` string — Base url of the Confluence site.

## Other responses

- `400` — Returned if an invalid request is provided.
- `401` — Returned if the authentication credentials are incorrect or missing from the request.
- `404` — Returned if the calling user does not have permission to view the space or the space was not found.

---

[API](https://skmtc.net/atlassian/apis/the-confluence-cloud-rest-api-v2.md) · [All operations](https://skmtc.net/atlassian/apis/the-confluence-cloud-rest-api-v2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/atlassian/the-confluence-cloud-rest-api-v2/revisions/c4bd1ed570f2/schema)
