TomonoriSoejima / Tejun

notes related to working cases
5 stars 3 forks source link

where is user info stored in es7? #123

Open TomonoriSoejima opened 1 year ago

TomonoriSoejima commented 1 year ago
PUT /_security/user/john_doe
{
  "password" : "johndoepassword",
  "roles" : [ "admin", "other_role1" ],
  "full_name" : "John Doe",
  "email" : "john.doe@domain.com",
  "metadata" : {
    "intelligence" : 7
  },
  "enabled": true
}

GET _security/user/john_doe

GET .security/_search
{
  "query": {
    "match": {
      "username": "john_doe"
    }
  }
}