Class ActivateUserProfileRequest
- All Implemented Interfaces:
JsonpSerializable
Create or update a user profile on behalf of another user.
NOTE: The user profile feature is designed only for use by Kibana and
Elastic's Observability, Enterprise Search, and Elastic Security solutions.
Individual users and external applications should not call this API directly.
The calling application must have either an access_token
or a
combination of username
and password
for the user
that the profile document is intended for. Elastic reserves the right to
change or remove this feature in future releases without prior notice.
This API creates or updates a profile document for end users with information
that is extracted from the user's authentication object including
username
, full_name,
roles
, and the
authentication realm. For example, in the JWT access_token
case,
the profile user's username
is extracted from the JWT token
claim pointed to by the claims.principal
setting of the JWT
realm that authenticated the token.
When updating a profile document, the API enables the document if it was
disabled. Any updates do not change existing content for either the
labels
or data
fields.
- 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<ActivateUserProfileRequest>
Json deserializer forActivateUserProfileRequest
Endpoint "security.activate_user_profile
". -
Method Summary
Modifier and TypeMethodDescriptionfinal String
The user's Elasticsearch access token or JWT.final GrantType
Required - The type of grant.static ActivateUserProfileRequest
final String
password()
The user's password.void
serialize
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected void
serializeInternal
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static void
setupActivateUserProfileRequestDeserializer
(ObjectDeserializer<ActivateUserProfileRequest.Builder> op) final String
username()
The username that identifies the user.Methods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toString
-
Field Details
-
_DESERIALIZER
Json deserializer forActivateUserProfileRequest
-
_ENDPOINT
public static final Endpoint<ActivateUserProfileRequest,ActivateUserProfileResponse, _ENDPOINTErrorResponse> Endpoint "security.activate_user_profile
".
-
-
Method Details
-
of
public static ActivateUserProfileRequest of(Function<ActivateUserProfileRequest.Builder, ObjectBuilder<ActivateUserProfileRequest>> fn) -
accessToken
The user's Elasticsearch access token or JWT. Bothaccess
andid
JWT token types are supported and they depend on the underlying JWT realm configuration. If you specify theaccess_token
grant type, this parameter is required. It is not valid with other grant types.API name:
access_token
-
grantType
Required - The type of grant.API name:
grant_type
-
password
The user's password. If you specify thepassword
grant type, this parameter is required. It is not valid with other grant types.API name:
password
-
username
The username that identifies the user. If you specify thepassword
grant type, this parameter is required. It is not valid with other grant types.API name:
username
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
setupActivateUserProfileRequestDeserializer
protected static void setupActivateUserProfileRequestDeserializer(ObjectDeserializer<ActivateUserProfileRequest.Builder> op)
-