---
title: "Retrieve an account roles"
method: GET
path: "/api/v2/accounts/{accountId}/roles"
tags: ["Member Account Roles", "Member Account"]
---

# Retrieve an account roles

`GET /api/v2/accounts/{accountId}/roles`

Retrieve an account roles in the current gym for given accountId

## Path parameters

- `accountId` string, required

## Response `200`

Ok

- GymRolesDTO
  - `trainer` boolean — If trainer is true, assign trainer right for account, otherwise remove trainer rights.
  - `gymOwner` boolean — If gymOwner is true, assign gymOwner right for account, otherwise remove gymOwner rights.

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `500` — Internal Server Error

---

[API](https://skmtc.net/egym/apis/mms-api-v2.md) · [All operations](https://skmtc.net/egym/apis/mms-api-v2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/egym/mms-api-v2/versions/07d571d34bd8/schema)
