---
title: "GET /api/application/{application_id}/user-sources/roles/"
method: GET
path: "/api/application/{application_id}/user-sources/roles/"
tags: ["User source roles"]
---

# GET /api/application/{application_id}/user-sources/roles/

`GET /api/application/{application_id}/user-sources/roles/`

Lists all the roles of the application related to the provided parameter if the user has access to the related application's workspace. If the workspace is related to a template, then this endpoint will be publicly accessible.

## Path parameters

- `application_id` integer, required

## Response `200`

- UserSourceUserSourceRoles
  - `id` integer, required
  - `roles` string[], required
  - `table_id` integer, nullable — The id of the Baserow table we want the data for.
  - `email_field_id` integer, nullable — The id of the field to use as email for the user account.
  - `name_field_id` integer, nullable — The id of the field that contains the user name.
  - `role_field_id` integer, nullable — The id of the field that contains the user role.

## Other responses

- `404`

---

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