Skip to main content
Retrieve all groups within a specific organization. Groups are collections of users that can be used to manage permissions and access control within an organization.

Path Parameters

org_id
string
required
The unique identifier of the organization. This can be the organization’s ID or slug.

Query Parameters

state
string
Filter groups by their state. Available values:
  • enabled - Only return active groups
  • disabled - Only return disabled groups
If not provided, returns groups in all states.
group_ids
array
Filter to specific group IDs. Provide an array of group IDs to return only those groups.
with_members
boolean
default:"false"
Include the list of members (users) in each group in the response.
with_member_count
boolean
default:"false"
Include the count of members in each group in the response.

Response

groups
array
List of groups in the organization.
curl -X GET 'https://frontier.example.com/v1beta1/organizations/org_123/groups' \
  -H 'Authorization: Bearer YOUR_ACCESS_TOKEN'
{
  "groups": [
    {
      "id": "grp_123456789",
      "name": "engineering-team",
      "title": "Engineering Team",
      "org_id": "org_123",
      "metadata": {
        "department": "engineering",
        "location": "us-west"
      },
      "created_at": "2023-01-15T10:30:00Z",
      "updated_at": "2023-06-20T15:45:00Z",
      "members_count": 12
    },
    {
      "id": "grp_987654321",
      "name": "design-team",
      "title": "Design Team",
      "org_id": "org_123",
      "metadata": {
        "department": "design"
      },
      "created_at": "2023-02-01T09:00:00Z",
      "updated_at": "2023-05-10T11:20:00Z",
      "members_count": 8
    }
  ]
}

Build docs developers (and LLMs) love