# CSV Export not available when xpack.reporting.roles.enabled set to false

**URL:** <https://discuss.elastic.co/t/csv-export-not-available-when-xpack-reporting-roles-enabled-set-to-false/313445>\
**Category:** Kibana\
**Created:** [September 1, 2022, 1:04pm UTC](https://discuss.elastic.co/t/csv-export-not-available-when-xpack-reporting-roles-enabled-set-to-false/313445 "2022-09-01T13:04:56Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Harm](https://avatars.discourse-cdn.com/v4/letter/h/b4bc9f/32.png) [@Harm](https://discuss.elastic.co/u/Harm)\
**Post date:** [September 1, 2022, 1:04pm UTC](https://discuss.elastic.co/t/csv-export-not-available-when-xpack-reporting-roles-enabled-set-to-false/313445/1 "2022-09-01T13:04:56Z")

</div>

Hi, since the xpack.reporting.roles settings are deprecated since v7.14.0, I have disabled the use of the reporting role in our 7.17.6 environment by setting:

> xpack.reporting.roles.enabled: false

The new subfeatures appear in the role settings page, however regardless of whether I enable the subfeatures or not, the CSV export button on the Discovery page does not appear. Even when I set the Kibana features to All, it does not work. Setting back the xpack.reporting.roles.enabled to true gives me the Generate CSV button back.

Just to be clear, the reporting subfeatures for the Dashboards and Visualizations work fine after enabling the subfeatures, but exporting to CSV from within the Discovery is not possible. The share button only shows the Snapshot and Saved object URL link.

Is there anyone who could confirm this behavior? Sound like a bug, but I couldn't find anything related on Github.

Tnx!

---

<div class="post-metadata">

**Author:** ![jsanz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jsanz/32/53734_2.png) [@jsanz](https://discuss.elastic.co/u/jsanz)\
**Post date:** [September 6, 2022, 1:59pm UTC](https://discuss.elastic.co/t/csv-export-not-available-when-xpack-reporting-roles-enabled-set-to-false/313445/2 "2022-09-06T13:59:26Z")

</div>

Thanks for reporting, this feels indeed like a bug so I've created one, please follow that issue and feel free to add/comment appropriately.

> <https://github.com/elastic/kibana/issues/140097>
>
> Since the report at \[this discuss post\](https://discuss.elastic.co/t/csv-export-…not-available-when-xpack-reporting-roles-enabled-set-to-false/313445) was well written I've taken the liberty to post it here directly. Feels related to https://github.com/elastic/kibana/issues/123058#issuecomment-1092313320 but I can't confirm.
> 
> \---
> 
> \<!--
> 
> \*\*Kibana version:\*\*
> 
> \*\*Elasticsearch version:\*\*
> 
> \*\*Server OS version:\*\*
> 
> \*\*Browser version:\*\*
> 
> \*\*Browser OS version:\*\*
> 
> \*\*Original install method (e.g. download page, yum, from source, etc.):\*\*
> 
> \*\*Describe the bug:\*\*
> 
> \*\*Steps to reproduce:\*\*
> 1.
> 2.
> 3.
> 
> \*\*Expected behavior:\*\*
> 
> \*\*Screenshots (if relevant):\*\*
> 
> \*\*Errors in browser console (if relevant):\*\*
> 
> \*\*Provide logs and/or server output (if relevant):\*\*
> 
> \*\*Any additional context:\*\*
> 
> \--\>
> 
> Hi, since the xpack.reporting.roles settings are deprecated since v7.14.0, I have disabled the use of the reporting role in our 7.17.6 environment by setting:
> 
> \`\`\`
> xpack.reporting.roles.enabled: false
> \`\`\`
> 
> The new subfeatures appear in the role settings page, however regardless of whether I enable the subfeatures or not, the CSV export button on the Discovery page does not appear. Even when I set the Kibana features to All, it does not work. Setting back the xpack.reporting.roles.enabled to true gives me the Generate CSV button back.
> 
> Just to be clear, the reporting subfeatures for the Dashboards and Visualizations work fine after enabling the subfeatures, but exporting to CSV from within the Discovery is not possible. The share button only shows the Snapshot and Saved object URL link.
> 
> Is there anyone who could confirm this behavior? Sound like a bug, but I couldn't find anything related on Github.
> 
> Tnx!

---

<div class="post-metadata">

**Author:** ![tsullivan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tsullivan/32/31077_2.png) [@tsullivan](https://discuss.elastic.co/u/tsullivan)\
**Post date:** [September 7, 2022, 6:39pm UTC](https://discuss.elastic.co/t/csv-export-not-available-when-xpack-reporting-roles-enabled-set-to-false/313445/3 "2022-09-07T18:39:34Z")

</div>

Hi @Harm

The `xpack.reporting.roles.enabled: false` setting is indeed what we recommend that users apply, until that set-up is made the default in a future version.

- What type of cluster license do you have?
- Are you selecting a Space when setting the Kibana application privileges for the role, and using the Discover app with the same space selected?
- Are you able to access CSV reporting features from Discover with a superuser account?

I ran a test on a local 7.17.6 docker cluster, and was not able to reproduce the problem with a test user having a role that grants CSV export privilege in Discover.

---

<div class="post-metadata">

**Author:** ![Harm](https://avatars.discourse-cdn.com/v4/letter/h/b4bc9f/32.png) [@Harm](https://discuss.elastic.co/u/Harm)\
**Post date:** [September 8, 2022, 8:40am UTC](https://discuss.elastic.co/t/csv-export-not-available-when-xpack-reporting-roles-enabled-set-to-false/313445/4 "2022-09-08T08:40:47Z")

</div>

Hi @tsullivan thanks for following up. This is an Elastic Cloud Elasticsearch cluster running on 7.17.6. We are using our own Kibana also on 7.17.6.

- The Cluster has an Enterprise license.
- We are setting permissions on a non-Default space. All features on this space are enabled via Kibana-\>Spaces. The role that we are using is giving access to all exporting/reporting sub-features. This seems to work fine for generating PDF reports of visuals and dashboards, but the CSV export share is missing for the users assigned to this role.
- Superuser access is working fine.

I will try to share some screenshots.

---

<div class="post-metadata">

**Author:** ![tsullivan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tsullivan/32/31077_2.png) [@tsullivan](https://discuss.elastic.co/u/tsullivan)\
**Post date:** [September 9, 2022, 7:47pm UTC](https://discuss.elastic.co/t/csv-export-not-available-when-xpack-reporting-roles-enabled-set-to-false/313445/5 "2022-09-09T19:47:48Z")

</div>

> This is an Elastic Cloud Elasticsearch cluster running on 7.17.6. We are using our own Kibana also on 7.17.6.

Do you have any custom user settings for Kibana in the ECE instances, and if so can you share them? Can you also share your kibana.yml settings for the Kibana instance you're running on your own?

---

<div class="post-metadata">

**Author:** ![Harm](https://avatars.discourse-cdn.com/v4/letter/h/b4bc9f/32.png) [@Harm](https://discuss.elastic.co/u/Harm)\
**Post date:** [September 15, 2022, 1:49pm UTC](https://discuss.elastic.co/t/csv-export-not-available-when-xpack-reporting-roles-enabled-set-to-false/313445/6 "2022-09-15T13:49:48Z")

</div>

Hi Tim, unfortunately I'm not able to replicate the issue anymore. After reversing `xpack.reporting.roles.enabled: false` and enabling the sub-features it works as expected. Maybe we should ignore it for now. It could have to do something with previously created roles, or manually created roles through the API, but I'm not sure. Sorry for the inconvenience.

---

<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:** [October 13, 2022, 1:50pm UTC](https://discuss.elastic.co/t/csv-export-not-available-when-xpack-reporting-roles-enabled-set-to-false/313445/7 "2022-10-13T13:50:37Z")

</div>

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