Class QueryUserRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.security.QueryUserRequest
- All Implemented Interfaces:
JsonpSerializable
Find users with a query.
Get information for users in a paginated manner. You can optionally filter the results with a query.
NOTE: As opposed to the get user API, built-in users are excluded from the result. This API is only for native users.
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<QueryUserRequest>Json deserializer forQueryUserRequeststatic final Endpoint<QueryUserRequest,QueryUserResponse, ErrorResponse> Endpoint "security.query_user". -
Method Summary
Modifier and TypeMethodDescriptionfinal Integerfrom()The starting document offset.static QueryUserRequestfinal UserQueryquery()A query to filter which users to return.final List<FieldValue>The search after definitionvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal Integersize()The number of hits to return.final List<SortOptions>sort()The sort definition.final BooleanDetermines whether to retrieve the user profile UID, if it exists, for the users.Methods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toString
-
Field Details
-
_DESERIALIZER
Json deserializer forQueryUserRequest -
_ENDPOINT
Endpoint "security.query_user".
-
-
Method Details
-
of
public static QueryUserRequest of(Function<QueryUserRequest.Builder, ObjectBuilder<QueryUserRequest>> fn) -
from
The starting document offset. It must not be negative. By default, you cannot page through more than 10,000 hits using thefromandsizeparameters. To page through more hits, use thesearch_afterparameter.API name:
from -
query
A query to filter which users to return. If the query parameter is missing, it is equivalent to amatch_allquery. The query supports a subset of query types, includingmatch_all,bool,term,terms,match,ids,prefix,wildcard,exists,range, andsimple_query_string. You can query the following information associated with user:username,roles,enabled,full_name, andemail.API name:
query -
searchAfter
The search after definitionAPI name:
search_after -
size
The number of hits to return. It must not be negative. By default, you cannot page through more than 10,000 hits using thefromandsizeparameters. To page through more hits, use thesearch_afterparameter.API name:
size -
sort
The sort definition. Fields eligible for sorting are:username,roles,enabled. In addition, sort can also be applied to the_docfield to sort by index order.API name:
sort -
withProfileUid
Determines whether to retrieve the user profile UID, if it exists, for the users.API name:
with_profile_uid -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
setupQueryUserRequestDeserializer
protected static void setupQueryUserRequestDeserializer(ObjectDeserializer<QueryUserRequest.Builder> op)
-