# Using user API to get built-in users

**URL:** <https://discuss.elastic.co/t/using-user-api-to-get-built-in-users/358556>\
**Category:** Elastic Security\
**Created:** [May 1, 2024, 12:19pm UTC](https://discuss.elastic.co/t/using-user-api-to-get-built-in-users/358556 "2024-05-01T12:19:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ire](https://avatars.discourse-cdn.com/v4/letter/i/e274bd/32.png) [@ire](https://discuss.elastic.co/u/ire)\
**Post date:** [May 1, 2024, 12:19pm UTC](https://discuss.elastic.co/t/using-user-api-to-get-built-in-users/358556/1 "2024-05-01T12:19:20Z")

</div>

Hello, I am hoping to get some help please.

I have a version 7.17 Elasticsearch and using the dev tools, I run

`GET /_security/user`  
but I get

```auto
{
  "error" : "Incorrect HTTP method for uri [/_security/user?pretty=true] and method [GET], allowed: [POST]",
  "status" : 405
}

```

but this works on another instance the same version

So I try using POST with

`POST /_security/user`

but I get

```auto
{
  "error" : {
    "root_cause" : [
      {
        "type" : "parse_exception",
        "reason" : "request body is required"
      }
    ],
    "type" : "parse_exception",
    "reason" : "request body is required"
  },
  "status" : 400
}

```

I am not even sure how to proceed from here, please assist, thanks

---

<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 29, 2024, 12:19pm UTC](https://discuss.elastic.co/t/using-user-api-to-get-built-in-users/358556/2 "2024-05-29T12:19:22Z")

</div>

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