Files
elasticsearch-js/docs/reference-security-get_user.asciidoc
2024-12-05 14:46:52 -06:00

73 lines
3.9 KiB
Plaintext

[[reference-security-get_user]]
////////
===========================================================================================================================
|| ||
|| ||
|| ||
|| ██████╗ ███████╗ █████╗ ██████╗ ███╗ ███╗███████╗ ||
|| ██╔══██╗██╔════╝██╔══██╗██╔══██╗████╗ ████║██╔════╝ ||
|| ██████╔╝█████╗ ███████║██║ ██║██╔████╔██║█████╗ ||
|| ██╔══██╗██╔══╝ ██╔══██║██║ ██║██║╚██╔╝██║██╔══╝ ||
|| ██║ ██║███████╗██║ ██║██████╔╝██║ ╚═╝ ██║███████╗ ||
|| ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝╚═════╝ ╚═╝ ╚═╝╚══════╝ ||
|| ||
|| ||
|| This file is autogenerated, DO NOT send pull requests that changes this file directly. ||
|| You should update the script that does the generation, which can be found in: ||
|| https://github.com/elastic/elastic-client-generator-js ||
|| ||
|| You can run the script with the following command: ||
|| npm run elasticsearch -- --version <version> ||
|| ||
|| ||
|| ||
===========================================================================================================================
////////
[discrete]
[[client.security.getUser]]
=== client.security.getUser
Get users. Get information about users in the native realm and built-in users.
{ref}/security-api-get-user.html[{es} documentation]
[discrete]
==== Function signature
[source,ts]
----
(SecurityGetUserRequest, options?): Promise<SecurityGetUserResponse>
----
[discrete]
==== Request
[pass]
++++
<pre>
++++
interface SecurityGetUserRequest extends <<RequestBase>> {
username?: <<Username>> | <<Username>>[]
with_profile_uid?: boolean
}
[pass]
++++
</pre>
++++
[discrete]
==== Response
[pass]
++++
<pre>
++++
type SecurityGetUserResponse = Record<string, <<SecurityUser>>>
[pass]
++++
</pre>
++++