GET api/v3/Personnel/GetPersonnelInfo?userId={userId}

Gets information about a specific person

Request Information

URI Parameters

NameDescriptionTypeAdditional information
userId

UserId of the person to get info for

string

Required

Body Parameters

None.

Response Information

Resource Description

PersonnelInfoResult with information pertaining to that user

PersonnelInfoResultV3
NameDescriptionTypeAdditional information
Uid

The UserId GUID/UUID for the user

string

None.

Did

DepartmentId of the deparment the user belongs to

integer

None.

Id

Department specificed ID number for this user

string

None.

Fnm

The Users First Name

string

None.

Lnm

The Users Last Name

string

None.

Eml

The Users Email Address

string

None.

Mnu

The Users Mobile Telephone Number

string

None.

Gid

GroupId the user is assigned to (0 for no group)

integer

None.

Gnm

Name of the group the user is assigned to

string

None.

Roles

Enumeration/List of roles the user currently holds

Collection of string

None.

Ats

The current action/status type for the user

integer

None.

Atm

The timestamp of the last action. This is converted UTC to the departments, or users, TimeZone.

date

None.

Dsi

The current action/status destination id for the user

string

None.

Dsn

The current action/status destination name for the user

string

None.

Stf

The current staffing level (state) type for the user

integer

None.

Stm

The timestamp of the last state/staffing level. This is converted UTC to the departments, or users, TimeZone.

date

None.

Response Formats

application/json

Sample:
{
  "Uid": "sample string 1",
  "Did": 2,
  "Id": "sample string 3",
  "Fnm": "sample string 4",
  "Lnm": "sample string 5",
  "Eml": "sample string 6",
  "Mnu": "sample string 7",
  "Gid": 8,
  "Gnm": "sample string 9",
  "Roles": [
    "sample string 1",
    "sample string 2"
  ],
  "Ats": 10,
  "Atm": "2017-06-23T10:22:33.1615018+00:00",
  "Dsi": "sample string 12",
  "Dsn": "sample string 13",
  "Stf": 14,
  "Stm": "2017-06-23T10:22:33.1771658+00:00"
}

application/xml, text/xml

Sample:
<PersonnelInfoResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Resgrid.Web.Services.Controllers.Version3.Models.Personnel">
  <Atm>2017-06-23T10:22:33.1615018+00:00</Atm>
  <Ats>10</Ats>
  <Did>2</Did>
  <Dsi>sample string 12</Dsi>
  <Dsn>sample string 13</Dsn>
  <Eml>sample string 6</Eml>
  <Fnm>sample string 4</Fnm>
  <Gid>8</Gid>
  <Gnm>sample string 9</Gnm>
  <Id>sample string 3</Id>
  <Lnm>sample string 5</Lnm>
  <Mnu>sample string 7</Mnu>
  <Roles xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </Roles>
  <Stf>14</Stf>
  <Stm>2017-06-23T10:22:33.1771658+00:00</Stm>
  <Uid>sample string 1</Uid>
</PersonnelInfoResult>