Get suggestions for user profiles that match specified search criteria.
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. Elastic reserves the right to change or remove this feature in future releases without prior notice. ##Required authorization
- Cluster privileges:
read_security
Query parameters
-
A comma-separated list of filters for the
datafield of the profile document. To return all content usedata=*. To return a subset of content, usedata=<key>to retrieve content nested under the specified<key>. By default, the API returns nodatacontent. It is an error to specifydataas both the query parameter and the request body field.
Body
-
A query string used to match name-related fields in user profile documents. Name-related fields are the user's
username,full_name, andemail. -
The number of profiles to return.
data
string | array[string] A comma-separated list of filters for the
datafield of the profile document. To return all content usedata=*. To return a subset of content, usedata=<key>to retrieve content nested under the specified<key>. By default, the API returns nodatacontent. It is an error to specifydataas both the query parameter and the request body field.
POST /_security/profile/_suggest
{
"name": "jack", <1>
"hint": {
"uids": [ <2>
"u_8RKO7AKfEbSiIHZkZZ2LJy2MUSDPWDr3tMI_CkIGApU_0",
"u_79HkWkwmnBH5gqFKwoxggWPjEBOur1zLPXQPEl1VBW0_0"
],
"labels": {
"direction": ["north", "east"] <3>
}
}
}
curl \
--request GET 'http://api.example.com/_security/profile/_suggest' \
--header "Content-Type: application/json" \
--data '"{\n \"name\": \"jack\", \u003c1\u003e\n \"hint\": {\n \"uids\": [ \u003c2\u003e\n \"u_8RKO7AKfEbSiIHZkZZ2LJy2MUSDPWDr3tMI_CkIGApU_0\",\n \"u_79HkWkwmnBH5gqFKwoxggWPjEBOur1zLPXQPEl1VBW0_0\"\n ],\n \"labels\": {\n \"direction\": [\"north\", \"east\"] \u003c3\u003e\n }\n }\n}"'
{
"name": "jack", <1>
"hint": {
"uids": [ <2>
"u_8RKO7AKfEbSiIHZkZZ2LJy2MUSDPWDr3tMI_CkIGApU_0",
"u_79HkWkwmnBH5gqFKwoxggWPjEBOur1zLPXQPEl1VBW0_0"
],
"labels": {
"direction": ["north", "east"] <3>
}
}
}
{
"name": "jack",
"hint": {
"uids": [
"u_8RKO7AKfEbSiIHZkZZ2LJy2MUSDPWDr3tMI_CkIGApU_0",
"u_79HkWkwmnBH5gqFKwoxggWPjEBOur1zLPXQPEl1VBW0_0"
],
"labels": {
"direction": ["north", "east"]
}
}
}
{
"metadata" : "<?xml version=\"1.0\" encoding=\"UTF-8\"?><md:EntityDescriptor xmlns:md=\"urn:oasis:names:tc:SAML:2.0:metadata\" entityID=\"https://kibana.org\"><md:SPSSODescriptor AuthnRequestsSigned=\"false\" WantAssertionsSigned=\"true\" protocolSupportEnumeration=\"urn:oasis:names:tc:SAML:2.0:protocol\"><md:SingleLogoutService Binding=\"urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect\" Location=\"https://kibana.org/logout\"/><md:AssertionConsumerService Binding=\"urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST\" Location=\"https://kibana.org/api/security/saml/callback\" index=\"1\" isDefault=\"true\"/></md:SPSSODescriptor></md:EntityDescriptor>"
}