Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use a more informative API response when updating a user #76778

Open
pantelis-karamolegkos opened this issue Aug 20, 2021 · 1 comment
Open
Labels
>enhancement :Security/Authentication Logging in, Usernames/passwords, Realms (Native/LDAP/AD/SAML/PKI/etc) Team:Security Meta label for security team

Comments

@pantelis-karamolegkos
Copy link

I think one cannot tell from the API response whether the user was actually updated or not.

POST /_security/user/jacknich
{
  "password" : "l0ng-r4nd0m-p@ssw0rd",
  "roles" : [ "admin" ],
  "full_name" : "Jack Nicholson",
  "email" : "jacknich@example.com",
  "metadata" : {
    "intelligence" : 7
  }
}
{
  "created" : true
}
PUT /_security/user/jacknich
{
  "password" : "l0ng-r4nd0m-p@ssw0rd",
  "roles" : [ "colonel" ],
  "full_name" : "Nathan Jessup",
  "email" : "jacknich@example.com",
  "metadata" : {
    "intelligence" : 7
  }
}
{
  "created" : false
}

...and again

PUT /_security/user/jacknich
{
  "password" : "l0ng-r4nd0m-p@ssw0rd",
  "roles" : [ "colonel" ],
  "full_name" : "Nathan Jessup",
  "email" : "jacknich@example.com",
  "metadata" : {
    "intelligence" : 7
  }
}
{
  "created" : false
}
@pantelis-karamolegkos pantelis-karamolegkos added >enhancement needs:triage Requires assignment of a team area label labels Aug 20, 2021
@jtibshirani jtibshirani added :Security/Authorization Roles, Privileges, DLS/FLS, RBAC/ABAC and removed needs:triage Requires assignment of a team area label labels Aug 20, 2021
@elasticmachine elasticmachine added the Team:Security Meta label for security team label Aug 20, 2021
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-security (Team:Security)

@tvernum tvernum added :Security/Authentication Logging in, Usernames/passwords, Realms (Native/LDAP/AD/SAML/PKI/etc) and removed :Security/Authorization Roles, Privileges, DLS/FLS, RBAC/ABAC labels May 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>enhancement :Security/Authentication Logging in, Usernames/passwords, Realms (Native/LDAP/AD/SAML/PKI/etc) Team:Security Meta label for security team
Projects
None yet
Development

No branches or pull requests

4 participants