API version: 0.3.0

---

# `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`](/openapi-schema/element-id.md) — 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`](/openapi-schema/element-id.md)\[] — required

  - `search`: [`ElementId`](/openapi-schema/element-id.md)\[] — required

  - `create`: [`ElementId`](/openapi-schema/element-id.md)\[] — required

  - `update`: [`ElementId`](/openapi-schema/element-id.md)\[] — required

  - `delete`: [`ElementId`](/openapi-schema/element-id.md)\[] — required

  - `govern`: [`ElementId`](/openapi-schema/element-id.md)\[] — required

  - `execute`: [`ElementId`](/openapi-schema/element-id.md)\[] — 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

```json
{
  "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": {
      "$ref": "#/components/schemas/ElementId"
    },
    "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": {
            "$ref": "#/components/schemas/ElementId"
          }
        },
        "search": {
          "type": "array",
          "items": {
            "$ref": "#/components/schemas/ElementId"
          }
        },
        "create": {
          "type": "array",
          "items": {
            "$ref": "#/components/schemas/ElementId"
          }
        },
        "update": {
          "type": "array",
          "items": {
            "$ref": "#/components/schemas/ElementId"
          }
        },
        "delete": {
          "type": "array",
          "items": {
            "$ref": "#/components/schemas/ElementId"
          }
        },
        "govern": {
          "type": "array",
          "items": {
            "$ref": "#/components/schemas/ElementId"
          }
        },
        "execute": {
          "type": "array",
          "description": "Only elements which can be executed, i.e. saved searches, have an effect for it.",
          "items": {
            "$ref": "#/components/schemas/ElementId"
          }
        }
      }
    },
    "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."
          }
        }
      }
    }
  }
}
```

---

Home: [Ember Nexus API docs](/index.md)

Full site map: [llms.txt](/llms.txt)
