---
title: "Account Groups"
method: GET
path: "/directory/accounts/{id}/groups"
tags: ["directory"]
---

# Account Groups

`GET /directory/accounts/{id}/groups`

## Request

- Base URL: `https://api.instruxi.dev/api/v1/enforcer`
- URL: `https://api.instruxi.dev/api/v1/enforcer/directory/accounts/{id}/groups`
- Auth: one of:
  - API key in header `Authorization`
  - API key in header `X-API-Key`

Group ids an account belongs to, for a leaf service's own authorization decisions (e.g. gating a feature on tenant group membership) without that service maintaining its own copy of v3's group table.

## Path parameters

- `id` string, required

## Response `200`

OK

- InternalDeliveryHttpHandlerStringListResponse
  - `count` integer
  - `data` string[]
  - `success` boolean

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `500`: Internal Server Error

---

[API](https://skmtc.dev/instruxi/apis/enforcer-api.md) · [All operations](https://skmtc.dev/instruxi/apis/enforcer-api/llms.txt) · [OpenAPI document](https://skmtc.dev/instruxi/apis/enforcer-api/revisions/fa82bc1becc0?raw)
