Skip to content
Navigation

List users in the back office

GET
https://api.nicer.travel/backoffice/users

Lists the accounts Identity holds, 50 a page (limit, at most 100), paged with nextToken, in user id order (not a meaningful one). Each account carries what the users list shows: name, email, phone, photo, agency and role; name, email, phone and photo are personal data. Deleted accounts are listed too, with deleted true. role narrows the list to one platform role. The agency is named by the x-nicer-company header and nothing else: with one named, only the people with an active membership in it (as advisor, admin or Nicer staff), whatever agency they signed up in; with none, every account. A page narrowed by role or agency may hold fewer accounts than limit, even none, before the last page: read on while nextToken is not null. Nicer staff only. Errors: 400 ERROR_INVALID_QUERY for a bad role, limit or token; 403 ERROR_DO_NOT_HAVE_PERMISSION for a caller who is not Nicer staff.

Authorization

  • bearerAuth
    HTTP Bearer (JWT)
    required

    Authorization: Bearer <token>

Query parameters

  • limit
    optional
    integer

    The most people a page holds, 1 to 100; 50 by default. A page narrowed by role or agency may hold fewer, even none, before the last one.

    maximum: 100 · minimum: 1 · default: 50
  • nextToken
    optional
    string

    The nextToken of the previous page, to read the next one. Send it with the same role and agency.

    minLength: 1
  • role
    optional
    advisor
    or
    traveler
    or
    admin
    or
    superadmin

    Only the people with this platform role: traveler, advisor, admin (an agency admin) or superadmin (Nicer staff).

Header parameters

  • x-nicer-company
    optional
    string

    Company context for an agency admin who belongs to several companies. Optional when the caller belongs to one.

Returns

200

OK

JSON
  • items
    array of
    object
    required

    The items of this page.

    • familyName
      string
      required

      The person's family name, as they gave it; may be empty. Personal data.

    • fullName
      required

      The person's whole name, when stored. Personal data.

      Any of the following:

      • string
      • null
    • givenName
      string
      required

      The person's given name, as they gave it; may be empty. Personal data.

    • role
      advisor
      or
      traveler
      or
      admin
      or
      superadmin
      required

      The person's platform role: traveler, advisor, admin (an agency admin) or superadmin (Nicer staff).

    • userId
      string
      required

      The person's user id.

      minLength: 1
    • avatar
      optional
      string

      The URL of the person's photo, when they uploaded one: the stored media key behind Nicer's media host, as Identity's own user reads answer it. Personal data.

      format: uri
    • companyName
      optional

      The agency the account belongs to: the one the person signed up in, or nicer for an account that signed up with none. It does not list the other agencies the person works with or travels with.

      Any of the following:

      • string
      • null
    • deleted
      optional
      boolean

      True once the account was deleted; absent or false otherwise. Deleted accounts are listed too.

    • email
      optional

      The person's email, when the account has one; null or absent otherwise. Personal data.

      Any of the following:

      • string
      • null
    • phoneNumber
      optional

      The person's phone number, when the account has one; null or absent otherwise. Personal data.

      Any of the following:

      • string
      • null
  • nextToken
    required

    Send it back as nextToken to read the next page; null on the last page.

    Any of the following:

    • string
    • null

400

Request failed. errorCode is stable; errorMessage is for humans.
JSON
  • errorCode
    string
    required
  • errorMessage
    string
    required

401

Request failed. errorCode is stable; errorMessage is for humans.
JSON
  • errorCode
    string
    required
  • errorMessage
    string
    required

403

Request failed. errorCode is stable; errorMessage is for humans.
JSON
  • errorCode
    string
    required
  • errorMessage
    string
    required

Type to search…

↑↓ navigate↵ selectEsc close