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

81 lines
4.1 KiB
Plaintext

[[reference-security-query_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.queryUser]]
=== client.security.queryUser
Find users with a query. Get information for users in a paginated manner. You can optionally filter the results with a query.
{ref}/security-api-query-user.html[{es} documentation]
[discrete]
==== Function signature
[source,ts]
----
(SecurityQueryUserRequest, options?): Promise<SecurityQueryUserResponse>
----
[discrete]
==== Request
[pass]
++++
<pre>
++++
interface SecurityQueryUserRequest extends <<RequestBase>> {
with_profile_uid?: boolean
query?: SecurityQueryUserUserQueryContainer
from?: <<integer>>
sort?: <<Sort>>
size?: <<integer>>
search_after?: <<SortResults>>
}
[pass]
++++
</pre>
++++
[discrete]
==== Response
[pass]
++++
<pre>
++++
interface SecurityQueryUserResponse {
total: <<integer>>
count: <<integer>>
users: SecurityQueryUserQueryUser[]
}
[pass]
++++
</pre>
++++