# "action \[indices:data/write/index\]" is unauthorized for user: UserName

**URL:** <https://discuss.elastic.co/t/action-indices-data-write-index-is-unauthorized-for-user-username/178252>\
**Category:** Elasticsearch\
**Created:** [April 24, 2019, 12:44pm UTC](https://discuss.elastic.co/t/action-indices-data-write-index-is-unauthorized-for-user-username/178252 "2019-04-24T12:44:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![RRapariya](https://avatars.discourse-cdn.com/v4/letter/r/f475e1/32.png) [@RRapariya](https://discuss.elastic.co/u/RRapariya)\
**Post date:** [April 24, 2019, 12:44pm UTC](https://discuss.elastic.co/t/action-indices-data-write-index-is-unauthorized-for-user-username/178252/1 "2019-04-24T12:44:08Z")

</div>

Hi All,  
I am using below query to get a particular transaction\_id in the transaction index but getting error i.e."action [indices:data/write/index]" is unauthorized for user: UserName  
GET /transactions\_XYZ(Index name\_/transaction(type)/ccxxe8cc-xx68-4xxab-8xxe7-exxxxxceexx0  
{  
"query" : { "bool" : {

"must" : [

{ "term" : { "details.posted": "false" } }

]

}

}  
}

I understand this issue is related to some privileges but my question is why its trying to write in the index i.e. action [indices:data/write/index]". I am just trying to read a particular transaction id.  
Am I doing something wrong here? If yes, then what would be the correct approach to do the same thing?

---

<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 22, 2019, 12:44pm UTC](https://discuss.elastic.co/t/action-indices-data-write-index-is-unauthorized-for-user-username/178252/2 "2019-05-22T12:44:11Z")

</div>

Closed on May 22, 2019, 12:44pm UTC

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