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