Skip to content

Account Search User

Ronen Nachmias edited this page Jul 12, 2017 · 2 revisions

Search User

Usecase:

As an Organization Owner i wish to manage user membership in my organization (invite, kick-out or change permissions). to do so i need view the user details and its user id. search user api allows me to search user by name or email, view the details about the user and discover its userId.

Request:

POST /account/users/search
{
  "fullNameOrEmail":"<part of name or email query>",
  "token":{
    "origin":"google",
    "token":<google_token_id>
  }
}

Response: Status: 200 OK

{
  "users":[
    {
      "id":"<xxxxxxxxxxxxxxxxxx>",
      "email":"user.name@gmail.com",
      "emailVerified":true,
      "name":"user name",
      "pictureUrl":"https://lh3.googleusercontent.com/-D6tHvFNG8L4/s96-c/photo.jpg",
      "locale":"en",
      "familyName":"Nachmias",
      "givenName":"Ronen",
      "claims":null
    }
  ]
}

Clone this wiki locally