{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "additionalProperties": false,
    "properties": {
        "applicationRoles": {
            "items": {
                "additionalProperties": false,
                "properties": {
                    "resourceId": {
                        "pattern": "^[A-Fa-f\\d]{24}$",
                        "type": "string"
                    },
                    "role": {
                        "enum": [
                            "collaborate",
                            "view",
                            "none"
                        ],
                        "type": "string"
                    }
                },
                "required": [
                    "resourceId",
                    "role"
                ],
                "type": "object"
            },
            "maxItems": 1000,
            "type": "array"
        },
        "dashboardRoles": {
            "items": {
                "additionalProperties": false,
                "properties": {
                    "resourceId": {
                        "pattern": "^[A-Fa-f\\d]{24}$",
                        "type": "string"
                    },
                    "role": {
                        "enum": [
                            "collaborate",
                            "view",
                            "none"
                        ],
                        "type": "string"
                    }
                },
                "required": [
                    "resourceId",
                    "role"
                ],
                "type": "object"
            },
            "maxItems": 1000,
            "type": "array"
        },
        "email": {
            "_format": "email",
            "maxLength": 1024,
            "type": "string"
        },
        "role": {
            "enum": [
                "admin",
                "edit",
                "collaborate",
                "view",
                "none"
            ],
            "type": "string"
        }
    },
    "required": [
        "email",
        "role"
    ],
    "type": "object"
}