{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-workmail/json-schema/amazon-workmail-list-groups-for-entity-request-schema.json",
  "title": "ListGroupsForEntityRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-workmail-operations-api-openapi.yml#/components/schemas/ListGroupsForEntityRequest",
  "type": "object",
  "properties": {
    "OrganizationId": {
      "type": "string",
      "description": "The identifier for the organization under which the entity exists."
    },
    "EntityId": {
      "type": "string",
      "description": "The identifier for the entity. The entity ID can accept UserId or GroupID, Username or Groupname, or email. Entity ID: 12345678-1234-1234-1234-123456789012 or S-1-1-12-1234567890-123456789-123456789-1234 Email address: entity@domain.tld Entity name: entity"
    },
    "Filters": {
      "$ref": "#/$defs/ListGroupsForEntityFilters"
    },
    "NextToken": {
      "type": "string",
      "description": "The token to use to retrieve the next page of results. The first call does not contain any tokens."
    },
    "MaxResults": {
      "type": "integer",
      "description": "The maximum number of results to return in a single call."
    }
  },
  "required": [
    "OrganizationId",
    "EntityId"
  ],
  "$defs": {
    "ListGroupsForEntityFilters": {
      "type": "object",
      "properties": {
        "GroupNamePrefix": {
          "type": "string",
          "description": "Filters only group names that start with the provided name prefix."
        }
      }
    }
  }
}