# Need array parameter based url kibana dashboard

**URL:** <https://discuss.elastic.co/t/need-array-parameter-based-url-kibana-dashboard/358263>\
**Category:** Kibana\
**Created:** [April 26, 2024, 5:50am UTC](https://discuss.elastic.co/t/need-array-parameter-based-url-kibana-dashboard/358263 "2024-04-26T05:50:26Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![IndRajesh](https://avatars.discourse-cdn.com/v4/letter/i/439d5e/32.png) [@IndRajesh](https://discuss.elastic.co/u/IndRajesh)\
**Post date:** [April 26, 2024, 5:50am UTC](https://discuss.elastic.co/t/need-array-parameter-based-url-kibana-dashboard/358263/1 "2024-04-26T05:50:26Z")

</div>

HI All,

I have the sample index as below

post doctorindex/\_doc  
{  
"TABLENAME" : "doctor"  
"ID" : "d\_1",  
"DOCID":1  
"ULIST" : ["C\*","AB"]  
}

post doctorindex/\_doc  
{  
"TABLENAME" : "doctor"  
"ID" : "d\_2",  
"DOCID":2  
"ULIST" : ["A","AB\*"]  
}

post doctorindex/\_doc  
{  
"TABLENAME" : "doctor"  
"ID" : "d\_3",  
"DOCID":3  
"ULIST" : ["A","AB\*","GH","BH","NG"]  
}

I created the Dashboard based on given index,  
Now i need to filter the data in dashboard based on user ulist.(at the time of login)  
i will pass the ulist from web application/.net application as "A","NG" to the dashboard URL,if iany one matches then that data only need to display to user.

So how can i pass this as parameter to the URL?

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [April 26, 2024, 6:14am UTC](https://discuss.elastic.co/t/need-array-parameter-based-url-kibana-dashboard/358263/2 "2024-04-26T06:14:22Z")

</div>

I don't think you can. But that's not the right way to handle security IMO.  
Instead you should use RBAC.

An old blog post describes it:

> **[Document-Level Attribute-Based Access Control in Elasticsearch](https://www.elastic.co/blog/attribute-based-access-control-elasticsearch)**
>
> Thanks to a new feature in Elasticsearch 6.1, attribute-based access control is among the X-Pack security features. Learn about what it is and why you need it!...

---

<div class="post-metadata">

**Author:** ![IndRajesh](https://avatars.discourse-cdn.com/v4/letter/i/439d5e/32.png) [@IndRajesh](https://discuss.elastic.co/u/IndRajesh)\
**Post date:** [April 26, 2024, 6:34am UTC](https://discuss.elastic.co/t/need-array-parameter-based-url-kibana-dashboard/358263/3 "2024-04-26T06:34:33Z")

</div>

HI ,

I can write same in Elasticsearch query

```auto
GET /doctorindex/_search
{

"query" :{
    "bool" :{
        "filter" : [
            {
                "terms": {
                      "ULIST.keyword" :["A","AB*"]
                               }
           }
                     ]
               }
            }
}

```

It is giving output,but ULIST is dynamic based on user,So i need to send this as parameter in URL to filter the data when user logged in.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [April 26, 2024, 7:19am UTC](https://discuss.elastic.co/t/need-array-parameter-based-url-kibana-dashboard/358263/4 "2024-04-26T07:19:18Z")

</div>

> [@IndRajesh](#):
>
> So i need to send this as parameter in URL to filter the data when user logged in.

I don't think you can.

---

<div class="post-metadata">

**Author:** ![IndRajesh](https://avatars.discourse-cdn.com/v4/letter/i/439d5e/32.png) [@IndRajesh](https://discuss.elastic.co/u/IndRajesh)\
**Post date:** [April 26, 2024, 8:31am UTC](https://discuss.elastic.co/t/need-array-parameter-based-url-kibana-dashboard/358263/5 "2024-04-26T08:31:06Z")

</div>

Is there any way to get this solution using POST method ?

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [April 26, 2024, 9:05am UTC](https://discuss.elastic.co/t/need-array-parameter-based-url-kibana-dashboard/358263/6 "2024-04-26T09:05:25Z")

</div>

I don't understand. What do you mean by POST method? To which service do you want to POST? Kibana? Elasticsearch?
