---
title: "List groups"
method: GET
path: "/api/Groups"
tags: ["Groups"]
---

# List groups

`GET /api/Groups`

Returns all groups in your organization. Returns an empty list in hosted environments.
### Required Permissions

- **Global:** View Users And Groups

## Response `200`

Returns the list of groups

- GroupEntityModel[]
  - `id` string, required — The unique identifier of the user or group.
  - `userName` string, nullable, required — The display name of the user or group.
  - `context` 'None' | 'Google' | 'Okta' | 'Azure' | 'OIDC' | 'Keycloak', required — Enum representing the unique context that a Solar.EF.Models.Group belongs to. For example, Organizations may use multiple SSO providers for authentication, and <see cref="T:Solar.EF.Models.Group">Groups</see> are only unique by name within a particular context.

---

[API](https://skmtc.net/tonic/apis/textual-api.md) · [All operations](https://skmtc.net/tonic/apis/textual-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/tonic/textual-api/revisions/41da8739a690/schema)
