{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "type": "object",
    "properties": {
        "id": {
            "type": "string",
            "pattern": "^[A-Fa-f\\d]{24}$"
        },
        "experienceUserId": {
            "type": "string",
            "pattern": "^[A-Fa-f\\d]{24}$"
        },
        "applicationId": {
            "type": "string",
            "pattern": "^[A-Fa-f\\d]{24}$"
        },
        "creationDate": {
            "type": "string",
            "format": "date-time"
        },
        "lastUpdated": {
            "type": "string",
            "format": "date-time"
        },
        "passwordLastUpdated": {
            "type": "string",
            "format": "date-time"
        },
        "lastLogin": {
            "type": "string",
            "format": "date-time"
        },
        "email": {
            "type": "string",
            "format": "email",
            "maxLength": 1024
        },
        "firstName": {
            "type": "string",
            "maxLength": 1024
        },
        "lastName": {
            "type": "string",
            "maxLength": 1024
        },
        "avatarUrl": {
            "type": "string",
            "format": "url"
        },
        "tokenCutoff": {
            "type": "string",
            "format": "date-time"
        },
        "userTags": {
            "type": "object",
            "patternProperties": {
                "^[0-9a-zA-Z_-]{1,255}$": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255
                }
            },
            "additionalProperties": false
        },
        "experienceGroups": {
            "type": "array",
            "items": {
                "type": "object",
                "properties": {
                    "name": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 255
                    },
                    "id": {
                        "type": "string",
                        "pattern": "^[A-Fa-f\\d]{24}$"
                    }
                }
            }
        }
    }
}