{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/dynatrace/main/json-schema/dynatrace-group-user-dto-schema.json",
  "title": "GroupUserDto",
  "x-generated": "2026-10-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dynatrace-user-management-api-openapi.yml#/components/schemas/GroupUserDto",
  "type": "object",
  "properties": {
    "uid": {
      "type": "string",
      "description": "The UUID of the user."
    },
    "email": {
      "type": "string",
      "description": "The email address of the user."
    },
    "name": {
      "type": "string",
      "description": "The first name of the user."
    },
    "surname": {
      "type": "string",
      "description": "The last name of the user."
    },
    "userStatus": {
      "type": "string",
      "enum": [
        "ACTIVE",
        "INACTIVE",
        "PENDING",
        "DELETED",
        "ECUSTOMS_MANUALLY_BLOCKED"
      ],
      "description": "The status of this user in Dynatrace: \n\n* `ACTIVE`: The user is active.\n* `INACTIVE`: The user is deactivated and cannot sign in to Dynatrace. \n* `PENDING`: The user received an invitation, but hasn't completed sign-up yet. \n* `DELETED`: The user was deleted and cannot sign in to Dynatrace anymore. \n* `ECUSTOMS_MANUALLY_BLOCKED`: The user is blocked due to to a trade and export compliance violation. \n"
    },
    "emergencyContact": {
      "type": "boolean",
      "description": "The user is (`true`) or is not (`false`) an emergency contact for the account."
    },
    "groups": {
      "description": "A list of groups of which the user is a member.",
      "type": "array",
      "items": {
        "$ref": "#/$defs/AccountGroupDto"
      }
    }
  },
  "required": [
    "uid",
    "email",
    "groups"
  ],
  "$defs": {
    "AccountGroupDto": {
      "type": "object",
      "properties": {
        "groupName": {
          "type": "string",
          "description": "The name of the user group."
        },
        "uuid": {
          "type": "string",
          "description": "The UUID of the user group."
        },
        "owner": {
          "type": "string",
          "enum": [
            "LOCAL",
            "SCIM",
            "SAML",
            "DCS",
            "ALL_USERS"
          ],
          "description": "The type of the group. `LOCAL`, `SCIM`, `SAML` and `DCS` corresponds to the identity provider from which the group originates. `ALL_USERS` is a special case of `LOCAL` group. It means that group is always assigned to all users in the account."
        },
        "accountUUID": {
          "type": "string",
          "description": "The UUID of the Dynatrace account."
        },
        "accountName": {
          "type": "string",
          "description": "The name of the Dynatrace account."
        },
        "description": {
          "type": "string",
          "description": "A short description of the group."
        },
        "createdAt": {
          "type": "string",
          "description": "The date and time of the group creation in `2021-05-01T15:11:00Z` format."
        },
        "updatedAt": {
          "type": "string",
          "description": "The date and time of the most recent modification to the group in `2021-05-01T15:11:00Z` format."
        }
      },
      "required": [
        "groupName",
        "uuid",
        "owner",
        "accountUUID",
        "accountName",
        "description",
        "createdAt",
        "updatedAt"
      ]
    }
  }
}