{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "#/components/schemas/PermissionSubjectWithGroupId",
"title": "PermissionSubjectWithGroupId",
"required": [
"identifier",
"type"
],
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"user",
"group"
],
"example": "user"
},
"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 ID of the group",
"example": "example_value"
}
},
"description": "The user or group that the permission applies to."
}