Skip to main content
Version: Next

Permissions and Limits

Who Can Do What​

  • Create and change reports: the permission reports_config.
  • Open and run a report: the permission reports, and the report is shared with the user.
  • Read the data: the permission objects for data objects, assets for assets and documents for documents.

The data permission of the dataset is checked on every access to the data or to the fields of the dataset: listing fields, validating, previewing and saving a configuration, opening a report, running it (also page by page), its drill-downs and its CSV export. A user who loses the permission loses access to the shared reports on the dataset. The workspaces of the user apply on top.

An event dataset needs a permission only when its registration names one. That permission is then checked in the same places as the data permissions above. Without it, access to a shared report is enough.

Sharing​

Report Builder reports are custom reports. Share them with users and roles like any other custom report in the report settings. A user who opens a report sees only the result that the workspaces of the user allow.

An unknown report answers with 404, a report that is not shared with the user answers with 403.

Workspaces​

Every search applies the view permission of the workspaces of the user, including the workspaces of the roles of the user. Administrators see all elements. The permission applies in these places:

  • The elements of a list report and the elements counted by a summary report.
  • Related elements: values of a related element a user may not view are shown as restricted and match no filter condition, also no negated one (is not, not in, does not contain, is empty on their fields). A car whose manufacturer is restricted matches neither Manufacturer › Name is Ford nor is not Ford, and a relation field compares only the ids of related elements the user may view. The same applies to a restricted element on the way of a lookup, such as the country of a manufacturer. With several related elements, for example categories, the restricted ones are left out and the others decide: a car in the category Classic and in a restricted one matches is not Sports but not is not Classic. A car whose related elements are all restricted matches no condition on them, also not is not or is empty on one of their fields. Counts of groups keep restricted elements, so totals are complete. In a grouping by several related elements, the one restricted group counts each element once, however many of its related elements are restricted; its sums and other values also take each element once. The advanced filter (PQL) follows the same rule for comparisons on the ids of related elements, for example manufacturer.object = 10 or parentId != 3: only related elements the user may view are compared, see Advanced Filter Limits.
  • Empty relations: whether a relation is empty is read from the stored relation, restricted related elements included. A car whose only manufacturer is restricted matches Manufacturer has a value and not Manufacturer is empty: a restricted user can see that a relation exists, but not what it points to.
  • Drill-downs: an element opens only when the user may view it. A missing and a hidden element give the same answer.

Restricted workspaces match only the elements within the workspace. The parent folders on the path to an allowed workspace are not part of a report, even though the tree shows them. This requires a Generic Data Index version that matches view searches by the workspaces only.

Workflow place permissions are not applied to report results. A place that denies view does not hide its elements from a report. Restrict access to such elements with workspaces.

Localized Fields​

Localized values of data objects are shown only in languages the user may view. The workspace setting view languages (lView) of data object workspaces defines them.

A report uses one language for all its localized fields: the language of the configuration, else the language of the user when the user may view it, else the first language the user may view. Running the report needs permission for that language.

The language can be chosen in the builder and in the viewer, see Building Reports and Viewing Reports. A viewer may switch among the languages they may view; the choice is checked like the language of the report and never saved into it. There is no setting that locks the language of a report. Run, drill-down, parameter values and CSV export take the language. As for the language of the report, a language the user may not view is refused with 403, no rows and no file, when the report reads localized fields; a report without localized fields is not affected. The same holds for a report configured in such a language and for an advanced filter that names one: the run refuses it. A drill-down checks the clicked report in the language of the click, and the target then runs and is checked like any run.

  • A user without any restricting workspace may see all languages.
  • A user with restricting workspaces, directly or through roles, may use only the languages that all of these workspaces allow.
  • A report that shows a localized value in a language the user may not view answers with 403. Reports that use no localized field are not affected.

Fallback values count as the index holds them: the Generic Data Index stores the value of the fallback language chain where the chosen language is empty, and the Report Builder adds no fallback logic of its own. A user who may view a language but not the language it falls back to (for example de_AT but not de) can therefore see values of the other language in the one they chose where their own values are empty; this is how the index stores them.

Localized asset and document fields have no language restriction in Pimcore.

Limits​

LimitValue
Groups of a grouped report (summary group limit)summary_group_limit (default 10000), at most the group limit; the viewer, builder preview, MCP preview and CSV export. See below
Groups of one search (group limit)The search.max_buckets of the cluster, or the configured group_limit. Also sizes the searches of filters on related elements, lookups and parameter values.
Group fields3
Values (measures)10
Columns of a list50
Rows of a list page1 to 1000
Depth of a listThe index.max_result_window of the report's index; the viewer says where it is reached, see below
Rows of the CSV export of a listexport_max_rows (default 10000), at most the depth of the list
Top limit of a group field1 to 10000
Filters50
Parameters20
Values of an in or notIn filter1000
Sort fields of a list5
Click actions10
Parameters passed by a click action20
Size of a configuration256 KB as JSON
Advanced filter (PQL)2000 characters, see below
Relations of a lookup2 (max_lookup_depth)
Related ids a filter passes65000 of those the report refers to, see below
Preview in the builder50 rows, 50 groups per group field

Group Limit​

A grouped report returns at most summary_group_limit groups (default 10000, and never more than the group limit below). The limit exists so that a run answers in time: the search scales to millions of elements, but building and sending a response with tens of thousands of groups takes 12 to 30 seconds and can hit the PHP time limit (max_execution_time). The viewer, the builder preview, the MCP tool preview_report and the CSV export use it. The group limit (group_limit, default search.max_buckets of the cluster) stays the limit of one search and keeps sizing the searches of filters on fields of related elements (65000 related ids by default), lookups and parameter values.

The groups are counted from the values the data really has: every group field counts the smaller of its top and its distinct values, and the groups of all levels add up (level 1, level 1 x level 2, and so on). There is no check of the top values alone: two group fields with a top of 10000 each are valid when the data has few values.

  • A group field without top (and a lookup field) that would exceed the limit is cut to fit and the result is marked as truncated. The viewer then shows a notice. Use Show only the top to keep the result small, or narrow the report with filters and parameters.
  • When every group field has a top and the top values alone exceed the limit, the run reads the distinct values of the fields once (one extra query) and counts with them. Reports below the limit by their top values need no such query.
  • When the groups, counted this way, still exceed the limit after the fields without top are cut, the top of the deepest group field that has one is lowered until the groups fit (then the one above it, if that is not enough). This applies to reports with only top fields and to reports that mix fields with and without top. The result is marked as truncated and the viewer shows a notice that names the field, the number it was lowered from and to, the counted groups and the limit (for fields below the first, the number is per parent). Lower top of a group field, group by fewer fields, narrow the filters or raise the group limit to see more.
  • Time buckets (intervals) and number ranges are never cut: a level that alone exceeds the limit is refused at once, before any group is read, with a message that names the groups, the limit and what to change: a larger interval, fewer ranges, fewer group fields or filters, or a higher summary_group_limit.
  • Only when nothing can be cut further (every top field and every field without top is down to one group, or a time bucket level is too large) is the report refused with The report creates up to N groups, more than the limit of M.
  • The CSV export of a grouped report holds every group or is refused: a file has no place for the notice of a cut. The same holds for every page the Studio grid asks for (with or without a page size). A report whose groups, counted this way, exceed the limit is not exported; the message names the counted groups, the limit and that filtering the report with its parameters or grouping by fewer fields helps. The count is an upper bound with a margin of about 5 % per field (see below), so a report whose real groups come close to the limit can be refused although they would fit; filter it a little. A level that has no top of its own in the search (a grouping by related elements) is cut by the search before its top applies, so such a report is refused when the search had to cut it, and exported when every group came back. Below the count, every group is exported.

How the groups are counted (an upper bound: every parent group is assumed to have every child value): per level the top, or the distinct values plus about 5 % when there are fewer, plus one group for elements without a value and one for a field with several values; level 1, plus level 1 x level 2, plus level 1 x level 2 x level 3. Reports that reach 10000 groups are reports with two large group fields (for example two fields of about 100 values), time intervals over a long period by a field (day intervals over a year by a field of about 30 values), three fields of 50 x 50 x 4 values, or one field with many values and no top. Reports on the demo cars stay far below it; mostly generated data reaches it. Readers of such a table cannot take in tens of thousands of rows; use top, filters and parameters.

Measured on the development system with one million generated documents, through the viewer's run endpoint (median of three warm runs, three group fields with top 50): the search itself scales (OpenSearch answered within 0.5 s, heap and circuit breakers unaffected), about 85 % of the time goes into building and sending the response. A report with 1000 groups answers in 1.3 to 1.4 s (also with a sum), one with 7200 groups (counted 9702, just below the limit) in 4.6 s, and reports with 30000 and 100000 real groups, cut at the default of 10000, in 3.4 s with the notice. With summary_group_limit 65535 the same reports took 12 s (30000 groups) and 28 to 31 s (100000 groups, cut at 65535); the larger one reached the PHP time limit of 30 seconds: the first run ended with an error, one repeat returned no rows. The default of 10000 keeps a run clearly below the limit.

Raising summary_group_limit makes the runs slower in proportion to the groups; raise it only together with max_execution_time and the memory of the PHP workers, and measure your own largest report first.

Full tables are paged with a composite aggregation: the Report Builder returns pages of up to 1000 groups with a nextPageKey. Some groupings cannot be paged and need a top limit instead: group fields of a classification store key, of a related element or of a workflow place, own number ranges and intervals with an offset.

The default group limit is the cluster setting search.max_buckets. Large groupings can exhaust the heap of a search node before that limit stops them. Lower the limit for nodes with a small heap, see Configuration and Integration.

List Depth and CSV Export​

A list report pages as deep as the index.max_result_window of its index allows, like the grids of Pimcore Studio. The Generic Data Index creates its indices with a window of 10,000,000. Event indices have their own window, 10,000 by default. Pimcore reads the setting from the search cluster, once per index and five minutes, so a changed window applies within that time, and uses 10,000 when it cannot read it. For an alias over several indices, for example the monthly indices of an event dataset, the smallest window applies. The viewer and the MCP tools refuse a page beyond the window with an error that names it. A page never holds more rows than export_max_rows, whatever size it asks for. The result of a list report carries the window as meta.window.

The viewer pager follows that window, so a report on an index with the default window can be paged to its last row. Where a report matches more rows than the window lets a page reach, the viewer shows a notice with the rows it can show and the exact number of matching rows, and points to parameters and filters to narrow the report.

The CSV export of a list report exports every matching row, in the order of the viewer. It holds all rows in the memory of one messenger worker. A report that matches more rows than export_max_rows or the window is not exported: the export stops before it reads a row and names the matching rows, the limit and that filtering the report with its parameters helps. It does not export a part of the rows.

The default export_max_rows of 10000 fits a worker with a memory_limit of 256M, also one that runs with APP_DEBUG on. Measured on 25,015 cars with the export of Pimcore Studio (collection step and CSV creation step, 5 columns, PHP 8.4, the worker's own start included):

WorkerIdle worker25,015 rowsPer row
APP_ENV=prod, no debug101 MB146 MB1.8 KB
APP_ENV=dev, debug on116 MB179 MB2.5 KB

With debug on, the Generic Data Index keeps every executed search, with its raw result, in memory (up to 500 searches, 8.3 KB per row and 322 MB for the same export). The export empties that list after each page, which leaves the 2.5 KB of the table. Choose export_max_rows so that idle worker + rows * cost per row stays below 80 percent of the memory_limit of the workers: at 256M that is about 57,000 rows without debug and about 36,000 rows with debug on. The default of 10,000 keeps a margin for reports with more columns. Raise the memory_limit of the workers (the PHP CLI setting and the --memory-limit option of messenger:consume) together with export_max_rows. A worker that comes close to its memory_limit stops the export with a message that names the rows read and the limit, instead of ending without a result.

Advanced Filter Limits​

An advanced filter is limited to protect the search:

  • At most 2000 characters, and at most 400 tokens with brackets nested at most 10 levels deep.
  • At most 50 comparisons.
  • At most 5 LIKE patterns that start with a wildcard (* or ?), because they scan the whole index.
  • At most 5 conditions on fields of related elements (manufacturer:Manufacturer.name = "Ford", one relation step, lookup fields of the field list), because each one runs searches of its own. Each counts as one comparison. Deeper lookups are rejected for every user, administrators included. For users who are not administrators, comparisons with the id of a related element (manufacturer.object = 10) count against the same limit.
  • QUERY(...) is rejected for every user, administrators included. QUERY(...) takes a raw search query string that cannot be checked against the field list, the language permission or these limits, and a report is shared and runs with the permissions of each viewer, so it is not unlocked for anyone, see Building Reports.
  • Only fields of the field list of the data can be used. Internal index fields are not addressable. The field list leaves out fields the search index cannot query, for example localized relations inside object bricks.
  • Localized fields need a language, and the language permission of the user applies to it like to the language of a report.

The filter runs with the view permission of the user and can only narrow the result. A condition on a field of related elements searches the related elements with the view permission of the user too: related elements the user may not view match no condition, negated ones included (!=, NOT LIKE, EMPTY, NULL). Unlike the visual filters, negated conditions then also leave out the elements that have no related element at all, see Building Reports. Above the number of ids a filter can hold they behave like the visual filters, see Lookup Depth.

Comparisons on the ids of related elements, for example manufacturer.object or parentId, follow the rule of the relation filter for every user who is not an administrator: = 10 and != 10 compare only related elements the user may view, so an element whose related element 10 is restricted does not match = 10, nor != 10. In a localized relation the language written in the name is the one compared (place.de.object = 10). = NULL, != NULL, = EMPTY and != EMPTY read whether the relation is empty from the stored relation, restricted related elements included, like the visual filters. Every other comparison (<, >, <=, >=, LIKE, NOT LIKE, a text or a number with a fraction) is refused with an error for these users, because the order or text of an id would tell which ids exist behind a restricted element. Assets and documents have the id of the parent only, no relation to follow the elements the user may view: for these users parentId can only be checked for NULL and EMPTY there. Each comparison of an id counts against the limit of five conditions on related elements, together with the conditions on fields of related elements. A filter an administrator shares that uses one of the refused comparisons fails for every viewer who is not an administrator, so use = and != in shared reports. Administrators compare the stored ids with every operator.

Preview Cost​

The preview in the builder is capped: a list previews 50 rows and a summary 50 groups per group field, whatever the report sets. A preview never runs a full table. The viewer and the CSV export run the report with its own limits.

Lookup Depth​

A lookup reads a field of a related object, for example manufacturer.country.name. A report follows up to two relations. A lookup resolves the related ids per page for columns, backwards per level for filters and merges the groups in memory for groupings. A filter passes at most 65000 ids of related objects to the search (fewer when the group_limit setting is lower). For users who are not administrators, a filter that needs more related elements looks only at those the report refers to, that is, the ones the elements matching the report's other conditions point to. Of those it passes the ones that match, or when they are too many and the relation holds one element, the ones that do not. A filter is refused with an error only when both lists are longer than the limit (for a relation to several elements, when the matching ones are), or when the report refers to more than 200000 related elements. Narrow the report with further conditions.

Workflow Places​

Fields of the form workflow:<name>.place report the current place of an element in a workflow. They are available for workflows that keep the place in the table element_workflow_state (marking store state_table, the default) and for the element types the workflow supports: data object classes, assets and documents.

  • Elements without a stored place count in the initial place, when the workflow applies to all elements of the dataset. For other workflows, an element without a place has no value.
  • Elements of a workflow that allows several places at once count once per place.
  • The Generic Data Index indexes the places. See Configuration and Integration for the reindex steps.

Assets and Documents​

Assets and documents are datasets of their own.

  • Assets: system fields, fileSize, mimetype, width, height, duration, tags, owner and the indexed metadata, that is the predefined metadata and the metadata of asset metadata classes. Ad hoc metadata is not indexed and not available.
  • Documents: system fields, published, title, description, controller, template, prettyUrl, the navigation properties (navigation_name, navigation_title, navigation_exclude), tags and the owner.
  • Both: workflow places of the element type. Relation fields of data objects to assets or documents offer fields of the related element as lookups, see Building Reports.

Asset and document reports apply the asset and document workspaces of the user.