{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/dynatrace/main/json-schema/dynatrace-rest-wif-service-user-mapping-schema.json",
  "title": "RestWifServiceUserMapping",
  "x-generated": "2026-10-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dynatrace-workload-identity-federation-api-openapi.yml#/components/schemas/RestWifServiceUserMapping",
  "type": "object",
  "properties": {
    "uuid": {
      "type": "string"
    },
    "serviceUserUuid": {
      "type": "string"
    },
    "environmentId": {
      "type": "string"
    },
    "scopes": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "status": {
      "type": "string",
      "enum": [
        "ACTIVE",
        "INACTIVE"
      ]
    },
    "claimMappings": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/RestWifClaimMapping"
      }
    },
    "createdAt": {
      "format": "date-time",
      "type": "string"
    },
    "updatedAt": {
      "format": "date-time",
      "type": "string"
    }
  },
  "$defs": {
    "RestWifClaimMapping": {
      "type": "object",
      "properties": {
        "claimName": {
          "type": "string"
        },
        "claimValue": {
          "type": "string"
        },
        "matchType": {
          "type": "string",
          "enum": [
            "EXACT",
            "GLOB"
          ]
        }
      }
    }
  }
}