# Unable to export csv

**URL:** <https://discuss.elastic.co/t/unable-to-export-csv/316362>\
**Category:** Kibana\
**Created:** [October 11, 2022, 4:51pm UTC](https://discuss.elastic.co/t/unable-to-export-csv/316362 "2022-10-11T16:51:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rivermigue](https://avatars.discourse-cdn.com/v4/letter/r/46a35a/32.png) [@rivermigue](https://discuss.elastic.co/u/rivermigue)\
**Post date:** [October 11, 2022, 4:51pm UTC](https://discuss.elastic.co/t/unable-to-export-csv/316362/1 "2022-10-11T16:51:58Z")

</div>

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:

```auto
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:

```auto
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](https://www.elastic.co/guide/en/kibana/current/secure-reporting.html#grant-user-access-basic) 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:

```auto
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,

---

<div class="post-metadata">

**Author:** ![rivermigue](https://avatars.discourse-cdn.com/v4/letter/r/46a35a/32.png) [@rivermigue](https://discuss.elastic.co/u/rivermigue)\
**Post date:** [October 14, 2022, 1:58pm UTC](https://discuss.elastic.co/t/unable-to-export-csv/316362/2 "2022-10-14T13:58:28Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [November 11, 2022, 1:58pm UTC](https://discuss.elastic.co/t/unable-to-export-csv/316362/3 "2022-11-11T13:58:45Z")

</div>

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