Skip to main content

Person

Overview

API methods for CRUD operations for People/Users. Includes basic Access Rights assignments, Roles (permissions) assignments, and Card assignments.

Methods

APIDescription
GET api/Person/GetAllUsersReturns a list of UserViewModels that the API token has rights to view
GET api/Person/GetAllUsersByFacility/{FacilityId}Returns a list of UserViewModels from a given Facility that the API token has rights to view
GET api/Person/GetAllUsersByOccupancyId/{OccupancyId}Returns a list of UserViewModels from a given Occupancy that the API token has rights to view
GET api/Person/GetAllUsersByVendorId/{VendorId}Returns a list of UserViewModels from a given Occupancy that the API token has rights to view
GET api/Person/GetUserById/{UserId}Returns a single UserViewModel if the API token has rights to view it
POST api/Person/AddUserAdds a single User to the system. Returns Success/Error code plus primary key of user added.
POST api/Person/UpdateUserUpdates a single User that is already in the system. Returns Success/Error code.
POST api/Person/RemoveUserDeletes a single User that is already in the system. Returns Success/Error code
POST api/Person/AddUserRoleAdds an existing Role to an existing User. Returns Success/Error code plus primary key of UserRole entry made.
POST api/Person/RemoveUserRoleRemoves an existing Role from an existing User. Returns Success/Error code.
POST api/Person/AddUserCardAdds a Card to an existing User. Returns Success/Error code plus primary key of UserCard entry made.
POST api/Person/RemoveUserCardRemoves a Card from an existing User. Returns Success/Error code.
POST api/Person/AddUserContactItemAdds a Contact Information to an existing User. Returns Success/Error code plus primary key of ContactInfo entry made.
POST api/Person/RemoveUserContactItemRemoves Contact Information from an existing User. Returns Success/Error code.
POST api/Person/AddReaderAccessAdds Reader Access to an existing User. Returns Success/Error code plus primary key of UserReader entry made.
POST api/Person/RemoveReaderAccessRemoves Reader Access from an existing User. Returns Success/Error code.
POST api/Person/AddFloorStopAccessAdds Floor Stop Access to an existing User. Returns Success/Error code plus primary key of UserFloorStop entry made.
POST api/Person/RemoveFloorStopAccessRemoves Floor Stop Access from an existing User. Returns Success/Error code.
POST api/Person/AddFloorAccessAdds all Floor Stops pertaining to a given floor to an existing User. Returns Success/Error code.
POST api/Person/RemoveFloorAccessRemoves all Floor Stops pertaining to a given floor from an existing User. Returns Success/Error code.
POST api/Person/AddAccessLevelAdds an existing Access Level to an existing User. Returns Success/Error code plus primary key of UserAccessLevel entry made.
POST api/Person/RemoveAccessLevelRemoves an existing Access Level from an existing User. Returns Success/Error code.
POST api/Person/AddAccessLevelGroupAdds an existing Access Level Group to an existing User. Returns Success/Error code plus primary key of UserAccessLevelGroup entry made.
POST api/Person/RemoveAccessLevelGroupRemoves an existing Access Level Group from an existing User. Returns Success/Error code.