{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "#/components/schemas/PermissionSubject", "title": "PermissionSubject", "required": [ "identifier", "type" ], "type": "object", "properties": { "type": { "type": "string", "enum": [ "user", "group" ] }, "identifier": { "type": "string", "description": "for `type=user`, identifier should be user's accountId or `anonymous` for anonymous users\n\nfor `type=group`, identifier should be the groupId. We are deprecating groupName support in mid-2024 \nfor this field but still accept it in the interim." } }, "description": "The user or group that the permission applies to." }