{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-directory-service/json-schema/amazon-directory-service-list-groups-for-member-result-schema.json",
  "title": "ListGroupsForMemberResult",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-directory-service-groupmemberships-api-openapi.yml#/components/schemas/ListGroupsForMemberResult",
  "type": "object",
  "properties": {
    "DirectoryId": {
      "type": "string",
      "description": "The identifier (ID) of the directory that's associated with the member."
    },
    "Realm": {
      "type": "string",
      "description": "The domain that's associated with the group."
    },
    "MemberRealm": {
      "type": "string",
      "description": "The domain that's associated with the member."
    },
    "Groups": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/GroupSummary"
      },
      "description": "The group information that the request returns."
    },
    "NextToken": {
      "type": "string",
      "description": "An encoded paging token for paginated calls that can be passed back to retrieve the next page."
    }
  },
  "$defs": {
    "GroupSummary": {
      "type": "object",
      "properties": {
        "SID": {
          "type": "string",
          "description": "The unique security identifier (SID) of the group."
        },
        "SAMAccountName": {
          "type": "string",
          "description": "The name of the group."
        },
        "GroupType": {
          "type": "string",
          "enum": [
            "Distribution",
            "Security"
          ],
          "description": "The AD group type. For details, see Active Directory security group type."
        },
        "GroupScope": {
          "type": "string",
          "enum": [
            "DomainLocal",
            "Global",
            "Universal",
            "BuiltinLocal"
          ],
          "description": "The scope of the AD group. For details, see Active Directory security groups."
        }
      },
      "required": [
        "SID",
        "SAMAccountName",
        "GroupType",
        "GroupScope"
      ]
    }
  }
}