xpack.security.getUser

edit
client.xpack.security.getUser({
  username: string | string[]
})

Reference

username

string | string[] - A comma-separated list of usernames