The Log event for the API Operation "Create an Organization" is incomplete

The logs events for the API Operation “Create an Organization” are incomplete and don’t include fields that were part of the request such as display_name or metadata.

We make a request including the name, display_name and metadata, but on the Log operation (see sample below), only the name is displayed in the request.body. On the response only id and name are included, but also no display_name or metadata.

This is not the expected behaviour, as other API operations, like “Create a User” include all the provided parameters in the request.body including for example app_metadata and also the saved values on response.

We use the Auth0 Stream feature to process this log events on an AWS event bus, and this hinders our ability to process the events, as in the case of the “Create an Organization” the data is incomplete.

Sample:

{
  "date": "2023-06-29T06:09:47.198Z",
  "type": "sapi",
  "description": "Create an Organization",
  "client_id": "RSEem742KRIYsEwL6yLZ4OVaypbKR5rp",
  "client_name": "",
  "ip": "3.124.11.15",
  "user_agent": "Other 0.0.0 / Other 0.0.0",
  "details": {
    "request": {
      "method": "post",
      "path": "/api/v2/organizations",
      "query": {},
      "userAgent": "node.js/16.20.0",
      "body": {
        "name": "8y5i4d1s9b"
      },
      "channel": "api",
      "ip": "3.124.11.15",
      "auth": {
        "user": {},
        "strategy": "jwt",
        "credentials": {}
      }
    },
    "response": {
      "statusCode": 201,
      "body": {
        "id": "org_SxQc6jDuD51Czexr",
        "name": "8y5i4d1s9b"
      }
    }
  },
  "auth0_client": {
    "name": "node-auth0",
    "version": "2.44.1",
    "env": {
      "node": "16.20.0"
    }
  },
  "log_id": "90020230629060952329951000000000000001223372037301977990",
  "_id": "90020230629060952329951000000000000001223372037301977990",
  "isMobile": false,
  "id": "90020230629060952329951000000000000001223372037301977990"
}

Hi @areus,

Thank you for the suggestion and welcome to the Auth0 Community!