---
title: "GET /roleAssignments"
method: GET
path: "/roleAssignments"
tags: ["Roles"]
---

# GET /roleAssignments

`GET /roleAssignments`

## Request

- Base URL: `https://api.cxxx.eagleeyenetworks.com/api/v3.0`
- URL: `https://api.cxxx.eagleeyenetworks.com/api/v3.0/roleAssignments`
- Auth: HTTP bearer

This endpoint returns a list of all role assignments in current user's account.

## Query parameters

- `userId__in` string[]
- `roleId__in` string[]
- `roleId__contains` string
- `roleName__contains` string
- `self` boolean
- `pageToken` string
- `pageSize` integer

## Response `200`

List of role assignments.

- ApiPaginatedRoleAssignmentResponse: Used to wrap results for a paginated response, containing information on how to retrieve further pages.
  - `nextPageToken` string, nullable, required: Token to retrieve the next page. The value of this token is passed into the field pageToken. This value can be null if there is no next page.
  - `prevPageToken` string, nullable, required: Token to retrieve the previous page. The value of this token is passed into the field pageToken. This value can be null of there is no previous page.
  - `results` object[], required: The result set from a collection API call.
    - `userId` string, required: The ID of the user.
    - `roleId` string, uuid, required: The ID of the role.
    - `roleName` string, required: The name of the role.
  - `totalSize` integer, required: Size of the total result set.

## Other responses

- `400`: The supplied object is invalid. Error detail will contain the validation error.
- `401`: You are not authenticated. Please authenticate and try again.
- `403`: You have no permission to access the specified resource.
- `500`: Something went wrong in the server. Please try again.

---

[API](https://skmtc.dev/eagleeyenetworks/apis/user-accounts.md) - [All operations](https://skmtc.dev/eagleeyenetworks/apis/user-accounts/llms.txt) - [OpenAPI document](https://skmtc.dev/eagleeyenetworks/apis/user-accounts/revisions/e6bfa6544945?raw)
