> For the complete documentation index, see [llms.txt](https://dev.guardian.hedera.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dev.guardian.hedera.com/guardian/standard-registry/policies/policy-creation/creating-a-policy-using-apis/returns-list-of-groups-of-a-particular-user.md).

# Returns list of Groups of a particular user

## Returns a list of groups the user is a member of.

<mark style="color:blue;">`GET`</mark> `/policies/{policyId}/groups`

Returns a list of groups the user is a member of.

#### Path Parameters

| Name                                       | Type   | Description         |
| ------------------------------------------ | ------ | ------------------- |
| policyId<mark style="color:red;">\*</mark> | String | Selected policy ID. |

{% tabs %}
{% tab title="200: OK Successful Operation" %}

```javascript
{
    content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  properties:
                    id:
                      type: string
                    uuid:
                      type: string
                    role:
                      type: string
                    groupLabel:
                      type: string
                    groupName:
                      type: string
                    active:
                      type: boolean
}
```

{% endtab %}

{% tab title="401: Unauthorized Unauthorized" %}

```javascript
{
    // Response
}
```

{% endtab %}

{% tab title="403: Forbidden Forbidden" %}

```javascript
{
    // Response
}
```

{% endtab %}

{% tab title="500: Internal Server Error Internal Server Error" %}

```javascript
{
    content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
}
```

{% endtab %}
{% endtabs %}
