A certain tenant in a query string

Hi

I would like to share a dashboard with people who has a tenant with the ‘CountryList’ name.
My steps

  1. Open kibana
  2. select the ‘CountryList’ tenant
  3. create and save a new dashboard
  4. Click ‘share’ → Embed code → saved object

I get a link

	<iframe src="http://127.0.0.1:5601/app/kibana#/dashboard/2f06a5c0-545c-11e9-8374-871809c045eb?embed=true&_g=()" 
	height="600" 
	width="800"></iframe>

Another user(who has the CountryList tenant) try to open my link and he can’t see my dashboard while he doesn’t switch his tenant to CountryList.

My question

Can I add a query parameter to a link to change a tenant for the shared dashboard
something like this

	<iframe src="http://127.0.0.1:5601/app/kibana?tenant=CountryList#/dashboard/2f06a5c0-545c-11e9-8374-871809c045eb?embed=true&_g=()" 
	height="600" 
	width="800"></iframe>

Something similar I’ve found here Kibana Multitenancy | Security for Elasticsearch | Search Guard (a sgtenant query parameter)

Hi

I’ve tried to look at the code of Kibana but found nothing.

Guys any thoughts?

@s.samoilenko sorry for the slow response on this one. Try setting the query parameter ?security_tenant=CountryList in the iframe source.

The Kibana tenant code where it checks for a security_tenant query param is here: security-kibana-plugin/headers.js at master · opendistro-for-elasticsearch/security-kibana-plugin · GitHub

Cheers,
Eli

@elifish thank you, it helped

The right line is 67 :slight_smile:

1 Like