Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

/user/search

The action returns a list of matching active PPW users.

Request

FieldDescriptionTypeRequired
user_emailUser’s email addressstringNo
user_nameUser namestringNo
user_companyUser company namestringNo
offsetSearch offsetnumberNo

Example:

{
  "user_name": "vfw"
}
curl -H 'Content-Type: application/json' \
     -H 'Authorization: Bearer ACCESS_TOKEN' \
     -d '{"user_name": "vfw"}' \
     https://ppw.web/svc/user/search

Response

FieldDescriptionType
usersList of usersarray
nextIndicates there are more matching users.object

Each item in the users array is an object with the following fields:

FieldDescriptionType
user_idUnique identifier for a PPW usernumber
user_namePPW user namestring
user_emailPPW user emailstring
user_first_namePPW user’s first namestring
user_last_namePPW user’s last namestring
user_companyPPW user’s company namestring
user_display_namePPW user’s display namestring

The next field is set only when there are more matching users. The value of next field is an object with the following fields:

FieldDescriptionType
user_emailUser’s email address provided as the search parameterstring
user_nameUser’s name provided as the search parameterstring
user_companyUser’s company name provided as the search parameterstring
offsetSearch offsetnumber

To get the next chunk of matching users, provide the offset in next.offset as the offset in the request.

Example successful response:

{
  "users": [{
      "user_id": 131713,
      "user_name": "vfw-sub-7",
      "user_email": "mark.roebling@preservation.land",
      "user_first_name": "Mary",
      "user_last_name": "Roebling",
      "user_company": "PPW",
      "user_display_name": "Roebling, Mary"
    },
    {
      "user_id": 131712,
      "user_name": "vfw-sub-6",
      "user_email": "wilma.mankiller@preservation.land",
      "user_first_name": "Wilma",
      "user_last_name": "Mankiller",
      "user_company": "PPW",
      "user_display_name": "Mankiller, Wilma"
    },
    {
      "user_id": 131711,
      "user_name": "vfw-sub-5",
      "user_email": "amelia.boynton@preservation.land",
      "user_first_name": "Amelia",
      "user_last_name": "Boynton",
      "user_company": "PPW",
      "user_display_name": "Boynton, Amelia"
    },
    {
      "user_id": 131710,
      "user_name": "vfw-sub-4",
      "user_email": "eunice.kennedy@preservation.land",
      "user_first_name": "Eunice",
      "user_last_name": "Kennedy",
      "user_company": "PPW",
      "user_display_name": "Kennedy, Eunice"
    },
    {
      "user_id": 131709,
      "user_name": "vfw-sub-3",
      "user_email": "elizabeth.peratrovich@preservation.land",
      "user_first_name": "Elizabeth",
      "user_last_name": "Peratrovich",
      "user_company": "PPW",
      "user_display_name": "Peratrovich, Elizabeth"
    }
  ],
  "next": {
    "user_email": null,
    "user_name": "vfw",
    "user_company": null,
    "offset": 100
  }
}

Errors

Error TypeDescriptionStatus Code
access_deniedAccess token is invalid or expired401
scope_invalidClient app does not have the required OAuth scope403