Skip to content

BatchGetUsers

GET/api/v1/users:batchGet

Translate a set of names users/{id} to user objects.

curl \
-H "Authorization: Bearer ${OBLIQUE_API_KEY}" \
"https://us.oblique.security/api/v1/users:batchGet?names=string"

Set OBLIQUE_API_KEY to your API key.

  • namesstring[]required

    Names of the users to fetch, each of the format users/{user}.

200BatchGetUsersResponse
  • usersUser[]

    Users in the same order as the request.

    • namestring

      Assigned by Oblique. Format: users/{id}

    • uristringread-only

      Link to the user’s page in the Oblique app, for example “https://us.oblique.security/people/abc”.

    • createTimestring (date-time)read-only

      Create and update timestamps.

    • updateTimestring (date-time)read-only
    • deleteTimestring (date-time)read-only

      Users can only be soft-deleted to preserve logs and history. If this field is present, the user has been deleted and won’t be returned in lists, but can still be fetched by name.

    • mergedUserstringread-only

      The user this user was merged into. Set when the user was deleted by a merge, and names the user that remains and now holds this user’s email addresses.

      Format: users/{user}

    • displayNamestringrequired

      Primary display name of the user.

    • emailstringrequired

      Primary email of the user. Required for active users.

    • secondaryEmailsstring[]

      Additional emails of the user. These are in addition to the primary email.

    • titlestring

      Self reported role. “VP of Engineering”, “Senior Frontend Engineer”, “Engineering Director, Frontend”.

    • managerstring

      Optional manager of the user.

      Format: users/{user}

    • pictureUristring

      URI for the user’s profile picture. This can either be an https:// scheme, or an absolute path (/imgs/foo.png).

    • directReportCountinteger (int32)read-only

      Number of direct reports to this user.

    • totalReportCountinteger (int32)read-only

      Number of total reports to this user.

    • lastLoginTimestring (date-time)read-only

      The time the user last logged in. Not set if the user has never logged in.

    • loginCreatedbooleanread-only

      Whether the user was created by signing in, rather than by an integration.

StatusMeaning
400Malformed request
401Missing or invalid API key
403Not allowed for this API key
404Not found
429Too many requests
500Internal server error