Get User in Phin Api Route
This route is used to get a single user in Phin by Id.
User Attribute Reference
| Field Name | Description | Value Type | Optional (Y/N) |
| id | Unique Id of the user | String | N |
| first | First name | String | N |
| last | Last name | String | N |
| String | N | ||
| status | Status in Phin (active/slept) | String | N |
| deptname | Department Name | String | Y |
| supvemail | Supervisor Email | String | Y |
| supvname | Supervisor Name | String | Y |
| ophone | Office Phone Number (Azure only) | String | Y |
| phone | Phone number | String | Y |
| welcomed | Has this user received a welcome email? | Boolean | N |
| createdBy | Some methods of creating users populate this field with a string. | String | Y |
| creationMethod | Some methods of creating users populate this field with a string. | String | N |
Response Reference
| Field | Type | Example |
|---|---|---|
| user | Object | { “userId”: “sampleId”, “first”: “Don”, “last”: “Johnson”, "email": "djohnson@example.com"...} |
Response Sample
{ "users":
{
"userId": “sampleId”,
"first": “Pepe”,
"last": “Silvia”,
"email": "pepe@example.com",
"status": "active",
"welcomed": false,
"createdBy: "UserSync"
}
}
Error Reference
| Code | Message | Explanation | |
|---|---|---|---|
| 500 | Failed 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. |