Employee offices in Core
An employee in Core can be part of one or many offices across multiple broker companies. An employee can have one or several roles for each of those offices.
Retrieving an employee’s office affiliations
To determine which office an employee is affiliated with, you will need the following permissions:
Employees - Read
Offices - Read
Use the following endpoint:
GET /flow/api/Employees/{employeeId}/Offices
You should get a response similar to:
[
{
"OfficeId": 3,
"OfficeName": "Webtop Eiendomsmegling",
"IsPreferredOffice": false,
"EmployeeOfficeIsPublic": false,
"Roles": [
"Broker",
"AssistantBroker",
"DisciplineResponsible"
],
"Position": 88,
"IsExternalBroker": false,
"EmployeeNumber": 1000,
"GuaranteedSalaryYearly": false,
"CommissionSalaryIntervalType": "Monthly",
"SalaryActive": false,
"FirstName": "Ola",
"SurName": "Nordmann",
"BirthDate": "070993",
"NoContact": false,
"IsCustomerWebUser": false,
"Id": 141746,
"Guid": "d3e6c820-2575-4032-be99-68212a7463ac",
"BrokerCompanyId": 2,
"Name": "Ola Nordmann",
"Type": "Employee",
"Telephone": "+4799999999",
"Email": "ola.nordmann@visma.com",
"Address": "Os alle 4, 1777 HALDEN",
"PrimaryImageId": "281e1438-6977-4b5c-b417-042c42111e7b",
"Active": true,
"IsPublic": false,
"IsProfessional": false,
"IdentificationNumber": "070993 *****"
},
...
]
Note that this endpoint will return all office affiliations of an employee, including those where the employee is no longer associated.
Use the Active flag in the response to determine whether the employee still has an active affiliation with an office.