List Role Memberships
List every (client_id, role_id) pairing on this endpoint. Useful for building a "who has what role" matrix in admin tooling. Not paginated — this isn't expected to grow huge per endpoint (a typical app has dozens to hundreds of clients × a handful of roles).
Filter client-side to render the matrix you need, or pair with clients + roles for full join data.
Path parameters
id string (uuid) Req
Endpoint UUID.
Response (200 OK)
A bare JSON array of membership objects (not wrapped in an envelope), no specific order.
[].id int64
Membership row ID.
[].client_id, role_id int64
The pairing.
[].assigned_by int64?
Account user who granted the membership. Omitted if unknown. Useful for audit trails.
[].created_at, updated_at datetime
When the membership was created / last updated.
Errors
401 Unauthorized
Missing auth.
404 Not Found
Endpoint doesn't exist.
Request
curl "https://api.ngris.com/v1/endpoints/<uuid>/rbac/memberships" \
-H "X-API-KEY: <your_api_key>"
Python — build a who-has-what map
from collections import defaultdict
from ngris import Ngris
client = Ngris(api_key="<your_api_key>")
mems = client._get_raw("/endpoints/<endpoint_uuid>/rbac/memberships")
by_client = defaultdict(list)
for m in mems:
by_client[m["client_id"]].append(m["role_id"])
for cid, roles in by_client.items():
print(f"client #{cid}: roles {roles}")
Response — 200 OK
[
{"id": 41, "client_id": 11, "role_id": 1, "assigned_by": 1024, "created_at": "2026-04-01T00:00:00Z", "updated_at": "2026-04-01T00:00:00Z"},
{"id": 42, "client_id": 11, "role_id": 3, "assigned_by": 1024, "created_at": "2026-04-29T13:00:00Z", "updated_at": "2026-04-29T13:00:00Z"},
{"id": 43, "client_id": 12, "role_id": 3, "assigned_by": 1024, "created_at": "2026-04-15T00:00:00Z", "updated_at": "2026-04-15T00:00:00Z"}
]