Skip to main content

ElementAccess

Who is allowed to do what with one element. Not a collection: the entries are users and groups, not elements.

Properties

type:enum
required
id:string
required

The request path, including the principal query parameter if it was used.

element:ElementId
required
public:boolean
required

True if the anonymous user can read the element, i.e. everybody can. False if there is no anonymous user, or it can not read the element.

truncated:boolean
required

True if the list is cut because more users and groups would be listed than the instance allows, see elementAccess.maxPrincipals. The listed ones are still correct, the list is just incomplete.

access:object
required

The users and groups which hold the access type, ids sorted ascending. A group is listed instead of its members; a user is only listed if no listed group of the same access type covers them. Only users and groups which the current user can read are shown.

read:ElementId[]
required
search:ElementId[]
required
create:ElementId[]
required
update:ElementId[]
required
delete:ElementId[]
required
govern:ElementId[]
required
execute:ElementId[]
required

Only elements which can be executed, i.e. saved searches, have an effect for it.

principals:object
required

The users and groups listed in access, by id.

Raw Schema

{
"type": "object",
"description": "Who is allowed to do what with one element. Not a collection: the entries are users and groups, not elements.",
"required": [
"type",
"id",
"element",
"public",
"truncated",
"access",
"principals"
],
"properties": {
"type": {
"type": "string",
"enum": [
"_ElementAccess"
]
},
"id": {
"type": "string",
"description": "The request path, including the `principal` query parameter if it was used."
},
"element": {
},
"public": {
"type": "boolean",
"description": "True if the anonymous user can read the element, i.e. everybody can. False if there is no anonymous user, or it can not read the element."
},
"truncated": {
"type": "boolean",
"description": "True if the list is cut because more users and groups would be listed than the instance allows, see `elementAccess.maxPrincipals`. The listed ones are still correct, the list is just incomplete."
},
"access": {
"type": "object",
"description": "The users and groups which hold the access type, ids sorted ascending. A group is listed instead of its members; a user is only listed if no listed group of the same access type covers them. Only users and groups which the current user can read are shown.",
"required": [
"read",
"search",
"create",
"update",
"delete",
"govern",
"execute"
],
"properties": {
"read": {
"type": "array",
"items": {
}
},
"search": {
"type": "array",
"items": {
}
},
"create": {
"type": "array",
"items": {
}
},
"update": {
"type": "array",
"items": {
}
},
"delete": {
"type": "array",
"items": {
}
},
"govern": {
"type": "array",
"items": {
}
},
"execute": {
"type": "array",
"description": "Only elements which can be executed, i.e. saved searches, have an effect for it.",
"items": {
}
}
}
},
"principals": {
"type": "object",
"description": "The users and groups listed in `access`, by id.",
"additionalProperties": {
"type": "object",
"required": [
"type",
"name"
],
"properties": {
"type": {
"type": "string",
"enum": [
"User",
"Group"
]
},
"name": {
"type": [
"string",
"null"
],
"description": "The `name` property of the user or group, null if it has none."
},
"anonymous": {
"type": "boolean",
"enum": [
true
],
"description": "Only present, and then true, for the anonymous user."
}
}
}
}
}
}