# Embed kibana lens alone in a react application

**URL:** <https://discuss.elastic.co/t/embed-kibana-lens-alone-in-a-react-application/222048>\
**Category:** Kibana\
**Created:** [March 4, 2020, 10:54am UTC](https://discuss.elastic.co/t/embed-kibana-lens-alone-in-a-react-application/222048 "2020-03-04T10:54:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kikkuj](https://avatars.discourse-cdn.com/v4/letter/k/41988e/32.png) [@kikkuj](https://discuss.elastic.co/u/kikkuj)\
**Post date:** [March 4, 2020, 10:54am UTC](https://discuss.elastic.co/t/embed-kibana-lens-alone-in-a-react-application/222048/1 "2020-03-04T10:54:41Z")

</div>

Hi,  
I need to embed KIBANA LENS alone to my react application, providing the user a playground to visualize the data. The user should not have access to anything other than kibana lens with the user specific index-pattern and nothing else, not even the dashboard. I explored and didn't find any material to do the same. Any insight on this will be very much appreciated.

---

<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:** [March 4, 2020, 11:02am UTC](https://discuss.elastic.co/t/embed-kibana-lens-alone-in-a-react-application/222048/2 "2020-03-04T11:02:31Z")

</div>

You can get close by using [feature controls](https://www.elastic.co/guide/en/kibana/current/kibana-role-management.html) of the Kibana security solution.

Create a custom space for your user with just the relevant index pattern loaded and restrict the permissions by setting everything to "none" except for Visualize which should be set to "read". Linking users to `/app/kibana#/lens` will give them the Lens editor to play around with the data without them being able to access anything else or save visualizations. One exception: If a user knows how to do it, they could also access other visualization types, it's currently not possible to restrict individual visualization types.

---

<div class="post-metadata">

**Author:** ![kikkuj](https://avatars.discourse-cdn.com/v4/letter/k/41988e/32.png) [@kikkuj](https://discuss.elastic.co/u/kikkuj)\
**Post date:** [March 5, 2020, 5:05am UTC](https://discuss.elastic.co/t/embed-kibana-lens-alone-in-a-react-application/222048/3 "2020-03-05T05:05:16Z")

</div>

Thank you so much @flash1293!

---

<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:** [April 2, 2020, 5:05am UTC](https://discuss.elastic.co/t/embed-kibana-lens-alone-in-a-react-application/222048/4 "2020-04-02T05:05:18Z")

</div>

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