Unable to export csv

I have recently enabled the xpack plugin for native basic authentication, once I did that, the export csv within kibana stopped working and displaying the following error message:

Failed to create report
Sorry, you don't have access to Reporting
Error: Forbidden
    at fetch_Fetch.fetchResponse (https://redactedURI/46336/bundles/core/core.entry.js:8:56906)
    at async https://redactedURI/46336/bundles/core/core.entry.js:8:55074
    at async https://redactedURI/46336/bundles/core/core.entry.js:8:55031

I am currently using File based users and roles, here is the role being used:

cat /etc/elasticsearch/roles.yml
admin:
  applications:
  - application: kibana-.kibana
    privileges:
    - all
    resources:
    - "*"
  cluster:
  - all
  indices:
  - names:
    - "*"
    privileges:
    - all

I have followed this document Configure reporting in Kibana | Kibana Guide [8.4] | Elastic since I am on a basic license.
Kibana version is 7.16.2
Elasticsearch version is 7.16.2

The rest of features are working as expected, I can manage the cluster, create visualizations and dashboards, however when it comes to export the csv it errors with the above message even tho I am granting unrestrictive access to everything.

I have even tried this approach since this is what superuser returns as the privileges:

cat /etc/elasticsearch/roles.yml
admin:
  applications:
  - application: "*"
    privileges:
    - "*"
    resources:
    - "*"
  cluster:
  - all
  indices:
  - names:
    - "*"
    privileges:
    - all

The error is the same, what am I missing here so I can generate the CSV?
Thank you,

So, I tried this step:

  1. Enable application privileges in Reporting. To enable, turn off the default user access control features in kibana.yml :
    xpack.reporting.roles.enabled: false

As I understand, in previous versions this options was needed to be true so we could use the reporting_user role, however that role is now deprecated in the version we are running now, I have set that option to false and restarted kibana and I am now able to generate reports.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.