{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/mongodb/main/json-schema/mongodb-group-user-request-schema.json",
  "title": "GroupUserRequest",
  "x-generated": "2026-10-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/mongodb-mongodb-cloud-users-api-openapi.yml#/components/schemas/GroupUserRequest",
  "properties": {
    "roles": {
      "description": "One or more project-level roles to assign the MongoDB Cloud user.",
      "items": {
        "type": "string"
      },
      "minItems": 1,
      "type": "array",
      "uniqueItems": true,
      "writeOnly": true
    },
    "username": {
      "description": "Email address that represents the username of the MongoDB Cloud user.",
      "format": "email",
      "type": "string",
      "writeOnly": true
    }
  },
  "required": [
    "roles",
    "username"
  ],
  "type": "object"
}