# Variables in Canvas

**URL:** https://discuss.elastic.co/t/variables-in-canvas/228073
**Category:** Kibana
**Tags:** canvas
**Created:** [April 15, 2020, 9:43am UTC](https://discuss.elastic.co/t/variables-in-canvas/228073 "2020-04-15T09:43:17Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![ErwinEnableU](https://avatars.discourse-cdn.com/v4/letter/e/ce73a5/32.png) [@ErwinEnableU](https://discuss.elastic.co/u/ErwinEnableU)
#### Post date: [April 15, 2020, 9:43am UTC](https://discuss.elastic.co/t/variables-in-canvas/228073/1 "2020-04-15T09:43:18Z")

</div>

Hi all,  
we are creating Canvas for our customers. On the Canvas we show the status of the connections between our platform and the software our customers use. The general build in Canvas is succesfull. But now we try to figure out how to show on the Canvas specific customer information. For instance: customers use different software to connect to our platform; for a specific customer I would like to show the name of the software being used, but this is different for other customers. How can I create an element which shows a different name depending on who is logged in.  
We do not want to create all different Canvasses for all our customers, because this is not managable.

---

<div class="post-metadata">

### Author: ![flash1293](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/flash1293/32/41227_2.png) [@flash1293](https://discuss.elastic.co/u/flash1293)
#### Post date: [April 15, 2020, 4:20pm UTC](https://discuss.elastic.co/t/variables-in-canvas/228073/2 "2020-04-15T16:20:27Z")

</div>

I'm assuming the different customers are using different users to log into your Kibana instance?

If this is the case, you could create a dummy index with this meta information for each customer:

```auto
{ customer: A, platform: B }
{ customer: C, platform: D }

```

Each customer user has a role assigned that grants access to this index, but only for the documents matching their customer id (using [document level security](https://www.elastic.co/guide/en/elasticsearch/reference/current/document-level-security.html)) - so customer A can only see the first document, customer B can only see the second document and so on.

In canvas, you can query this dummy index and it will return the only document found for the permissions of the current user - now it's possible to visualize it (and even use it to build other queries).

---

<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: [May 13, 2020, 4:20pm UTC](https://discuss.elastic.co/t/variables-in-canvas/228073/3 "2020-05-13T16:20:29Z")

</div>

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