Phin Security

Get User in Phin Api Route

The "Get User in Phin API Route" retrieves a single user by their unique ID, returning a user object with mandatory fields like id, first name, last name, email, status, welcomed, and creationMethod, along with optional fields such as department name and supervisor details, and responds with either the user data directly or a 500 error if the retrieval fails.

  1. 1.Help Center
  2. 2.API / Technical Questions
  3. 3.Phin API Documentation

Get User in Phin Api Route

This route is used to get a single user in Phin by Id.

User Attribute Reference

Field NameDescriptionValue TypeOptional (Y/N)
idUnique Id of the userStringN
firstFirst nameStringN
lastLast nameStringN
emailEmailStringN
statusStatus in Phin (active/slept)StringN
deptnameDepartment NameStringY
supvemailSupervisor EmailStringY
supvnameSupervisor NameStringY
ophoneOffice Phone Number (Azure only)StringY
phonePhone numberStringY
welcomedHas this user received a welcome email?BooleanN
createdBySome methods of creating users populate this field with a string.StringY
creationMethodSome methods of creating users populate this field with a string.StringN

Response Reference

The response body is the user object itself. It is not wrapped in a "user" or "users" key, and the identifier field is "id" (not "userId").

FieldTypeExample
(body)Object{ "id": "sampleId", "first": "Don", "last": "Johnson", "email": "[email protected]", ... }

Response Sample

{
  "id": "sampleId",
  "first": "Pepe",
  "last": "Silvia",
  "email": "[email protected]",
  "status": "active",
  "welcomed": false,
  "createdBy": "UserSync"
}

Error Reference

CodeMessageExplanation
500Failed to get users. Please try again or contact Phin Support for assistance.Something went wrong fetching the inventory of users. Try again later or contact Phin.

Was this article helpful?

YesNo

Related articles