Skip to main content
BluINFO

GetUserById

Overview 

Returns a list of UserViewModels from a given Occupancy that the API token has rights to view.

Request Information


Method

GET - api/Person/GetUserById/{UserId}

URI Parameters

Name Description Type Additional information
UserId

 

globally unique identifier

Required

Body Parameters

None.

Response Information 


Resource Description

UserViewModel

Name Description Type Additional information
PersonId

Represents the PK of an existing User in BluSKY

globally unique identifier

None.

FirstName

Represents the User's first/given name.

string

None.

LastName

Represents the User's last name / surname.

string

None.

MiddleInitial

Represents the User's middle initial

string

None.

sGenderId

Represents the User's gender association for Life Safety purposes: 1=Female, 2=Male, 3=Unspecified

integer

None.

DefaultFloorId

Represents the PK of the Floor that the person's desk/primary workplace is on.

globally unique identifier

None.

DefaultFloorName

Represents the name of the Floor that the person's desk/primary workplace is on.

string

None.

DefaultFloorStopId

Represents the PK of the default Floor Stop in the elevator that the person will go to when using Destination elevator systems.

integer

None.

DefaultFloorStopName

Represents the name of the default Floor Stop in the elevator that the person will go to when using Destination elevator systems.

string

None.

DefaultEmail

Represents the default email address of the User

string

None.

DefaultPhone

Represents the default phone number of the User

string

None.

FacilityId

Represents the PK of the facility that the User is located in

globally unique identifier

None.

FacilityName

Represents the name of the facility that the User is located in

string

None.

CompanyInstanceType

Represents the type of company instance that the User belongs to - 1 = Occupancy, 2 = Vendor, 3 = System Owner, 4 = Integrator

integer

None.

CompanyName

Represents the name of the company instance that the User belongs - name of the occupancy, name of the vendor, etc.

string

None.

ACSystemId

Represents the PK of the Access Control System that the User is located in

globally unique identifier

None.

ACSystemName

Represents the name of the Access Control System that the User is located in

string

None.

StartDatetime

Represents the DateTime when the record will start to be valid. If null, the record is currently active.

date

None.

EndDatetime

Represents the DateTime when the record will start to be invalid. If null and StartDateTime is in the past, the record is currently active.

date

None.

AccessRightsSuspended

Represents whether or not the User's Access Rights are suspended

boolean

None.

AccessRightsSuspendedStart

Represents the DateTime when the User's Access Rights will become suspended. If null and AccessRightsSuspended is true, all access are currently suspended.

date

None.

AccessRightsSuspendedEnd

Represents the DateTime when the User's Access Rights will become reactivated. If null and AccessRightsSuspended is true, access rights are suspended indefinitely.

date

None.

WebSiteRightsSuspended

Represents whether or not the User's BluSKY login rights are suspended

boolean

None.

WebSiteRightsSuspendedStart

Represents the DateTime when the User's BluSKY login rights will become suspended. If null and WebSiteRightsSuspended is true, all login rights are currently suspended.

date

None.

WebSiteRightsSuspendedEnd

Represents the DateTime when the User's BluSKY login rights will become re-enabled. If null and WebSiteRightsSuspended is true, all login rights are suspended indefinitely.

date

None.

BadgeTemplateId

Represents the PK of the Badge Template assinged to the User. Retrieve this by calling /Badge/GetAllBadges

globally unique identifier

None.

EmployeeNumber

Represents the employee number assigned to the User (typically by their HR department)

string

None.

HasPicture

Represents whether or not an image of the User exists in the System

boolean

None.

PersonPhotoUri

Represents the path to the User's default badge image (if one exists)

string

None.

ActiveLoginDatetime

Represents the time the User logged in to their current session in BluSKY

date

None.

Cards

Represents a list of all Cards assigned to the User

Collection of PersonCardViewModel

None.

ContactItems

Represents a list of all Contact Items associated with the User

Collection of ContactInfoUserViewModel

None.

Roles

Represents a list of all Roles assigned to the User

Collection of RoleViewModel

None.

ReaderAccess

Represents a list of all direct Reader Access assignments made to the User

Collection of ReaderAccessViewModel

None.

FloorStopAccess

Represents a list of all direct Floor Stop Access assignments made to the User

Collection of FloorStopAccessViewModel

None.

AccessLevels

Represents a list of all Access Level assignments made to the User

Collection of AccessLevelViewModel

None.

AccessLevelGroups

Represents a list of all Access Level Group assignments made to the User

Collection of AccessLevelGroupViewModel

None.

Response Formats 

JSON

{
  "PersonId": "b7924b30-cc9b-4d36-96e1-686172dfa659",
  "FirstName": "sample string 2",
  "LastName": "sample string 3",
  "MiddleInitial": "sample string 4",
  "sGenderId": 1,
  "DefaultFloorId": "3f0295fd-3f07-4ab0-890a-e1c579be9720",
  "DefaultFloorName": "sample string 5",
  "DefaultFloorStopId": 1,
  "DefaultFloorStopName": "sample string 6",
  "DefaultEmail": "sample string 7",
  "DefaultPhone": "sample string 8",
  "FacilityId": "5d692bab-2897-405e-a531-78c14fe33005",
  "FacilityName": "sample string 9",
  "CompanyInstanceType": 10,
  "CompanyName": "sample string 11",
  "ACSystemId": "898c3ad1-62ca-4cce-9ae6-da82f4bcacd4",
  "ACSystemName": "sample string 12",
  "StartDatetime": "2016-12-13T23:19:57.6862555-05:00",
  "EndDatetime": "2016-12-13T23:19:57.6862555-05:00",
  "AccessRightsSuspended": true,
  "AccessRightsSuspendedStart": "2016-12-13T23:19:57.6862555-05:00",
  "AccessRightsSuspendedEnd": "2016-12-13T23:19:57.6862555-05:00",
  "WebSiteRightsSuspended": true,
  "WebSiteRightsSuspendedStart": "2016-12-13T23:19:57.6862555-05:00",
  "WebSiteRightsSuspendedEnd": "2016-12-13T23:19:57.6862555-05:00",
  "BadgeTemplateId": "7e7bcb3b-bca7-4122-abdd-f031bbdc214d",
  "EmployeeNumber": "sample string 21",
  "HasPicture": true,
  "PersonPhotoUri": "sample string 23",
  "ActiveLoginDatetime": "2016-12-13T23:19:57.6862555-05:00",
  "Cards": [
    {
      "PersonCardId": "1f400f16-d2f0-4a23-bf97-6f6c7361b4c3",
      "CardId": "2fa5caee-fe8d-49ec-8b54-9fc2b156bcec",
      "CardType": 3,
      "CardACSystemId": "3479702b-cbde-4ac4-8e63-2ab9b1d54424",
      "CardACSystemName": "sample string 5",
      "InternalCardNumber": 6,
      "ExternalCardNumber": "sample string 7",
      "CardSerialNumber": 1,
      "FacilityCode": 8,
      "IssueCode": 9,
      "PIN": "sample string 10"
    },
    {
      "PersonCardId": "1f400f16-d2f0-4a23-bf97-6f6c7361b4c3",
      "CardId": "2fa5caee-fe8d-49ec-8b54-9fc2b156bcec",
      "CardType": 3,
      "CardACSystemId": "3479702b-cbde-4ac4-8e63-2ab9b1d54424",
      "CardACSystemName": "sample string 5",
      "InternalCardNumber": 6,
      "ExternalCardNumber": "sample string 7",
      "CardSerialNumber": 1,
      "FacilityCode": 8,
      "IssueCode": 9,
      "PIN": "sample string 10"
    }
  ],
  "ContactItems": [
    {
      "ContactInfoId": "b2bdacbd-b882-4950-af1b-813488f62afb",
      "ContactType": "sample string 2",
      "Label": "sample string 3",
      "Value": "sample string 4",
      "Deleted": true,
      "IsDefault": true
    },
    {
      "ContactInfoId": "b2bdacbd-b882-4950-af1b-813488f62afb",
      "ContactType": "sample string 2",
      "Label": "sample string 3",
      "Value": "sample string 4",
      "Deleted": true,
      "IsDefault": true
    }
  ],
  "Roles": [
    {
      "RoleId": "3dd3f1bc-dd5e-4a58-911e-85b679a8d2d2",
      "Name": "sample string 2"
    },
    {
      "RoleId": "3dd3f1bc-dd5e-4a58-911e-85b679a8d2d2",
      "Name": "sample string 2"
    }
  ],
  "ReaderAccess": [
    {
      "ReaderScheduleId": "a65ad7c0-3f9e-4f50-bbf3-afa47e911225",
      "ReaderName": "sample string 2",
      "ScheduleName": "sample string 3",
      "AccessRightsGrantedStart": "2016-12-13T23:19:57.6862555-05:00",
      "AccessRightsGrantedEnd": "2016-12-13T23:19:57.6862555-05:00"
    },
    {
      "ReaderScheduleId": "a65ad7c0-3f9e-4f50-bbf3-afa47e911225",
      "ReaderName": "sample string 2",
      "ScheduleName": "sample string 3",
      "AccessRightsGrantedStart": "2016-12-13T23:19:57.6862555-05:00",
      "AccessRightsGrantedEnd": "2016-12-13T23:19:57.6862555-05:00"
    }
  ],
  "FloorStopAccess": [
    {
      "FloorStopScheduleId": "c75c7257-1274-4bad-bc2b-7ea0b8ebd304",
      "FloorStopName": "sample string 2",
      "ScheduleName": "sample string 3",
      "AccessRightsGrantedStart": "2016-12-13T23:19:57.6862555-05:00",
      "AccessRightsGrantedEnd": "2016-12-13T23:19:57.6862555-05:00"
    },
    {
      "FloorStopScheduleId": "c75c7257-1274-4bad-bc2b-7ea0b8ebd304",
      "FloorStopName": "sample string 2",
      "ScheduleName": "sample string 3",
      "AccessRightsGrantedStart": "2016-12-13T23:19:57.6862555-05:00",
      "AccessRightsGrantedEnd": "2016-12-13T23:19:57.6862555-05:00"
    }
  ],
  "AccessLevels": [
    {
      "AccessLevelId": "3c231d0c-ab35-4201-af48-9b92e34d79a1",
      "Name": "sample string 2"
    },
    {
      "AccessLevelId": "3c231d0c-ab35-4201-af48-9b92e34d79a1",
      "Name": "sample string 2"
    }
  ],
  "AccessLevelGroups": [
    {
      "AccessLevelGroupId": "3027caa7-2349-402b-aaab-58a7f40225b0",
      "Name": "sample string 2"
    },
    {
      "AccessLevelGroupId": "3027caa7-2349-402b-aaab-58a7f40225b0",
      "Name": "sample string 2"
    }
  ]
}

XML

<UserViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BluSKYWebAPI.Controllers">
  <ACSystemId>898c3ad1-62ca-4cce-9ae6-da82f4bcacd4</ACSystemId>
  <ACSystemName>sample string 12</ACSystemName>
  <AccessLevelGroups>
    <AccessLevelGroupViewModel>
      <AccessLevelGroupId>3027caa7-2349-402b-aaab-58a7f40225b0</AccessLevelGroupId>
      <Name>sample string 2</Name>
    </AccessLevelGroupViewModel>
    <AccessLevelGroupViewModel>
      <AccessLevelGroupId>3027caa7-2349-402b-aaab-58a7f40225b0</AccessLevelGroupId>
      <Name>sample string 2</Name>
    </AccessLevelGroupViewModel>
  </AccessLevelGroups>
  <AccessLevels>
    <AccessLevelViewModel>
      <AccessLevelId>3c231d0c-ab35-4201-af48-9b92e34d79a1</AccessLevelId>
      <Name>sample string 2</Name>
    </AccessLevelViewModel>
    <AccessLevelViewModel>
      <AccessLevelId>3c231d0c-ab35-4201-af48-9b92e34d79a1</AccessLevelId>
      <Name>sample string 2</Name>
    </AccessLevelViewModel>
  </AccessLevels>
  <AccessRightsSuspended>true</AccessRightsSuspended>
  <AccessRightsSuspendedEnd>2016-12-13T23:19:57.6862555-05:00</AccessRightsSuspendedEnd>
  <AccessRightsSuspendedStart>2016-12-13T23:19:57.6862555-05:00</AccessRightsSuspendedStart>
  <ActiveLoginDatetime>2016-12-13T23:19:57.6862555-05:00</ActiveLoginDatetime>
  <BadgeTemplateId>7e7bcb3b-bca7-4122-abdd-f031bbdc214d</BadgeTemplateId>
  <Cards>
    <PersonCardViewModel>
      <CardACSystemId>3479702b-cbde-4ac4-8e63-2ab9b1d54424</CardACSystemId>
      <CardACSystemName>sample string 5</CardACSystemName>
      <CardId>2fa5caee-fe8d-49ec-8b54-9fc2b156bcec</CardId>
      <CardSerialNumber>1</CardSerialNumber>
      <CardType>3</CardType>
      <ExternalCardNumber>sample string 7</ExternalCardNumber>
      <FacilityCode>8</FacilityCode>
      <InternalCardNumber>6</InternalCardNumber>
      <IssueCode>9</IssueCode>
      <PIN>sample string 10</PIN>
      <PersonCardId>1f400f16-d2f0-4a23-bf97-6f6c7361b4c3</PersonCardId>
    </PersonCardViewModel>
    <PersonCardViewModel>
      <CardACSystemId>3479702b-cbde-4ac4-8e63-2ab9b1d54424</CardACSystemId>
      <CardACSystemName>sample string 5</CardACSystemName>
      <CardId>2fa5caee-fe8d-49ec-8b54-9fc2b156bcec</CardId>
      <CardSerialNumber>1</CardSerialNumber>
      <CardType>3</CardType>
      <ExternalCardNumber>sample string 7</ExternalCardNumber>
      <FacilityCode>8</FacilityCode>
      <InternalCardNumber>6</InternalCardNumber>
      <IssueCode>9</IssueCode>
      <PIN>sample string 10</PIN>
      <PersonCardId>1f400f16-d2f0-4a23-bf97-6f6c7361b4c3</PersonCardId>
    </PersonCardViewModel>
  </Cards>
  <CompanyInstanceType>10</CompanyInstanceType>
  <CompanyName>sample string 11</CompanyName>
  <ContactItems>
    <ContactInfoUserViewModel>
      <ContactInfoId>b2bdacbd-b882-4950-af1b-813488f62afb</ContactInfoId>
      <ContactType>sample string 2</ContactType>
      <Deleted>true</Deleted>
      <IsDefault>true</IsDefault>
      <Label>sample string 3</Label>
      <Value>sample string 4</Value>
    </ContactInfoUserViewModel>
    <ContactInfoUserViewModel>
      <ContactInfoId>b2bdacbd-b882-4950-af1b-813488f62afb</ContactInfoId>
      <ContactType>sample string 2</ContactType>
      <Deleted>true</Deleted>
      <IsDefault>true</IsDefault>
      <Label>sample string 3</Label>
      <Value>sample string 4</Value>
    </ContactInfoUserViewModel>
  </ContactItems>
  <DefaultEmail>sample string 7</DefaultEmail>
  <DefaultFloorId>3f0295fd-3f07-4ab0-890a-e1c579be9720</DefaultFloorId>
  <DefaultFloorName>sample string 5</DefaultFloorName>
  <DefaultFloorStopId>1</DefaultFloorStopId>
  <DefaultFloorStopName>sample string 6</DefaultFloorStopName>
  <DefaultPhone>sample string 8</DefaultPhone>
  <EmployeeNumber>sample string 21</EmployeeNumber>
  <EndDatetime>2016-12-13T23:19:57.6862555-05:00</EndDatetime>
  <FacilityId>5d692bab-2897-405e-a531-78c14fe33005</FacilityId>
  <FacilityName>sample string 9</FacilityName>
  <FirstName>sample string 2</FirstName>
  <FloorStopAccess>
    <FloorStopAccessViewModel>
      <AccessRightsGrantedEnd>2016-12-13T23:19:57.6862555-05:00</AccessRightsGrantedEnd>
      <AccessRightsGrantedStart>2016-12-13T23:19:57.6862555-05:00</AccessRightsGrantedStart>
      <FloorStopName>sample string 2</FloorStopName>
      <FloorStopScheduleId>c75c7257-1274-4bad-bc2b-7ea0b8ebd304</FloorStopScheduleId>
      <ScheduleName>sample string 3</ScheduleName>
    </FloorStopAccessViewModel>
    <FloorStopAccessViewModel>
      <AccessRightsGrantedEnd>2016-12-13T23:19:57.6862555-05:00</AccessRightsGrantedEnd>
      <AccessRightsGrantedStart>2016-12-13T23:19:57.6862555-05:00</AccessRightsGrantedStart>
      <FloorStopName>sample string 2</FloorStopName>
      <FloorStopScheduleId>c75c7257-1274-4bad-bc2b-7ea0b8ebd304</FloorStopScheduleId>
      <ScheduleName>sample string 3</ScheduleName>
    </FloorStopAccessViewModel>
  </FloorStopAccess>
  <HasPicture>true</HasPicture>
  <LastName>sample string 3</LastName>
  <MiddleInitial>sample string 4</MiddleInitial>
  <PersonId>b7924b30-cc9b-4d36-96e1-686172dfa659</PersonId>
  <PersonPhotoUri>sample string 23</PersonPhotoUri>
  <ReaderAccess>
    <ReaderAccessViewModel>
      <AccessRightsGrantedEnd>2016-12-13T23:19:57.6862555-05:00</AccessRightsGrantedEnd>
      <AccessRightsGrantedStart>2016-12-13T23:19:57.6862555-05:00</AccessRightsGrantedStart>
      <ReaderName>sample string 2</ReaderName>
      <ReaderScheduleId>a65ad7c0-3f9e-4f50-bbf3-afa47e911225</ReaderScheduleId>
      <ScheduleName>sample string 3</ScheduleName>
    </ReaderAccessViewModel>
    <ReaderAccessViewModel>
      <AccessRightsGrantedEnd>2016-12-13T23:19:57.6862555-05:00</AccessRightsGrantedEnd>
      <AccessRightsGrantedStart>2016-12-13T23:19:57.6862555-05:00</AccessRightsGrantedStart>
      <ReaderName>sample string 2</ReaderName>
      <ReaderScheduleId>a65ad7c0-3f9e-4f50-bbf3-afa47e911225</ReaderScheduleId>
      <ScheduleName>sample string 3</ScheduleName>
    </ReaderAccessViewModel>
  </ReaderAccess>
  <Roles>
    <RoleViewModel>
      <Name>sample string 2</Name>
      <RoleId>3dd3f1bc-dd5e-4a58-911e-85b679a8d2d2</RoleId>
    </RoleViewModel>
    <RoleViewModel>
      <Name>sample string 2</Name>
      <RoleId>3dd3f1bc-dd5e-4a58-911e-85b679a8d2d2</RoleId>
    </RoleViewModel>
  </Roles>
  <StartDatetime>2016-12-13T23:19:57.6862555-05:00</StartDatetime>
  <WebSiteRightsSuspended>true</WebSiteRightsSuspended>
  <WebSiteRightsSuspendedEnd>2016-12-13T23:19:57.6862555-05:00</WebSiteRightsSuspendedEnd>
  <WebSiteRightsSuspendedStart>2016-12-13T23:19:57.6862555-05:00</WebSiteRightsSuspendedStart>
  <sGenderId>1</sGenderId>
</UserViewModel>
  • Was this article helpful?