---
title: "Collect member relations"
method: POST
path: "/v1/role/{roleId}/member/query"
tags: ["Member"]
---

# Collect member relations

`POST /v1/role/{roleId}/member/query`

Get all (or some of) the member relations which start from a role where the user has (either directly or indirectly) userManagement rights, and get those member relations involding the user itself.

## Path parameters

- `roleId` union, required
  - integer
  - integer[]
  - '*'

## Request body

- object — Some filters, each of which must be valid for all returned member relations
  - `filter` object — Only return those member relations which match each of the specified filters
    - `id` integer[] — Only return member relations with one of the specified ids
    - `roleId` integer[] — Only return member relations with one of the specified role ids
    - `userEmail` string[] — Only return member relations with one of the specified userEmails

## Response `200`

The member relations which involve the user itself or start from a role where the user has (direct or indirect) userManagement rights. Of these relations, those which match all the specified filters are returned

- object
  - `member` Def30[]
    - `id` integer, required — Id of the member relation
    - `roleId` integer, required — Id of the role which has a user via the member relation
    - `userEmail` string, required — Email of the user which is a member via the member relation

## Other responses

- `400` — Invalidly formatted body
- `401` — Authentication required or token invalid

---

[API](https://skmtc.dev/eniris/apis/eniris-metadata-telemetry-query-api.md) · [All operations](https://skmtc.dev/eniris/apis/eniris-metadata-telemetry-query-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/eniris/eniris-metadata-telemetry-query-api/revisions/fe3723575e19/schema)
