ikucheriavenko
2/23/2020 - 9:39 PM

JSON user example

JSON user example

[
  {
    "type": "object",
    "properties": {
      "email": {
        "type": "string",
        "description": "The user's email address.",
        "format": "email"
      },
      "email_verified": {
        "type": "boolean",
        "default": false,
        "description": "Indicates whether the user has verified their email address."
      },
      "user_id": {
        "type": "string",
        "description": "The user's unique identifier. This will be prepended by the connection strategy."
      },
      "username": {
        "type": "string",
        "description": "The user's username."
      },
      "team_name": {
        "type": "string",
        "description": "The user's family name."
      },
      "blocked": {
        "type": "boolean",
        "description": "Indicates whether the user has been blocked."
      },
      "password_hash": {
        "type": "string",
        "description": "Hashed password for the user. Passwords should be hashed using bcrypt $2a$ or $2b$ and have 10 saltRounds."
      },
      "X_app_metadata": {
        "type": "object",
        "description": "Data related to the user that does affect the application's core functionality."
      },
      "Y_app_metadata": {
        "type": "object",
        "description": "Data related to the user that does affect the application's core functionality."
      },
      "user_metadata": {
        "type": "object",
        "description": "Data related to the user that does not affect the application's core functionality."
      }
    },
    "required": [
      "email"
    ],
    "additionalProperties": false,
    "roles": ["setapp_team_member"]
  },
  {},
  {},
  {}
]