Skip to content

Exchange Server ​

KSS Book connects to the Microsoft Exchange Server on your own servers (2013, 2016, 2019 or Subscription Edition) through Exchange Web Services (EWS), reads the calendars of the room mailboxes and writes what happens on the door display back to Outlook. The steps on this page are for your organization's Exchange administrator. A KSS Book administrator makes the KSS Book side of the settings on the Calendar connections page.

TIP

For Exchange Online (Microsoft 365) use the Microsoft 365 connection instead; Microsoft is turning EWS off in Exchange Online.

How it works ​

  • KSS Book signs in to EWS with a service account that has a mailbox.
  • Each room is matched with a room mailbox address (e.g. boardroom@corp.local).
  • Rooms with an online door display sync about every minute, others every 10 minutes (a 10-day window starting yesterday).
Action on the displayWhat happens in Outlook
Book nowA new appointment is created in the room calendar; nobody is invited.
End meeting / ExtendThe end time of the meeting in the room is updated; nobody is notified.
No check-in (room released)The invitation is declined on behalf of the room; the organizer is notified. Bookings made on the display and the room's own appointments are deleted.

Deleted appointments go to the room's Deleted Items folder. If the service account may not send replies on behalf of the room, the meeting cannot be declined when the room is released; KSS Book then deletes it from the room calendar without notifying anyone to free the room.

Network access

KSS Book must reach the EWS address over HTTPS (443). The KSS Book cloud service only connects to EWS addresses reachable from the internet. If your Exchange is only on the internal network, plan the access together with the KSS team.

Connection options ​

SettingOptions
AuthenticationNTLM (Windows) (recommended) or Basic (over HTTPS only).
Access to room mailboxesImpersonation (recommended, one role assignment) or Delegate access (rights per room).
Certificate validationTrusted certificate, your organization's root certificate, or validation off.

1. Find the EWS address ​

The address usually looks like https://<mail server>/EWS/Exchange.asmx. In the Exchange Management Shell:

powershell
Get-WebServicesVirtualDirectory | Format-List InternalUrl, ExternalUrl
  • If a reverse proxy sits in between, forms-based authentication must be off for EWS.

Certificate: if your organization's own certificate authority issued the certificate, choose the root certificate option, export the root certificate as Base-64 encoded X.509 (.CER) and paste its contents (the text starting with -----BEGIN CERTIFICATE-----) into the root certificate (PEM) field.

Turning validation off is not recommended

Someone on the network could pose as the Exchange server and capture the service account's credentials. Use it only for a trial or on a trusted network.

2. Prepare the service account ​

Create a separate account with a mailbox, only for KSS Book, whose password does not expire:

powershell
New-Mailbox -Name "KSS Book" -Alias svc-kssbook -UserPrincipalName svc-kssbook@corp.local `
  -Password (Read-Host "Password" -AsSecureString)
Set-ADUser svc-kssbook -PasswordNeverExpires $true
Set-CASMailbox svc-kssbook -EwsEnabled $true

In KSS Book enter the user name as CORP\svc-kssbook or svc-kssbook@corp.local. The password is stored encrypted.

When Exchange rejects the password, KSS Book stops trying (so the account is not locked out) and the connection waits for a new password; syncing stops until you enter it on the card.

3. Give access to the room mailboxes ​

powershell
New-ManagementRoleAssignment -Name "KssBook" -Role ApplicationImpersonation -User svc-kssbook

To limit the role to room mailboxes (instead of the previous command):

powershell
New-ManagementScope -Name "KssBook Rooms" `
  -RecipientRestrictionFilter {RecipientTypeDetails -eq "RoomMailbox"}
New-ManagementRoleAssignment -Name "KssBook" -Role ApplicationImpersonation -User svc-kssbook `
  -CustomRecipientWriteScope "KssBook Rooms"

Delegate access ​

When a role assignment is not possible, give the service account full access and send on behalf rights on every room; run it again for rooms added later:

powershell
Get-Mailbox -RecipientTypeDetails RoomMailbox -ResultSize Unlimited | ForEach-Object {
  Add-MailboxPermission -Identity $_.Identity -User svc-kssbook -AccessRights FullAccess `
    -InheritanceType All -AutoMapping $false
  Set-Mailbox -Identity $_.Identity -GrantSendOnBehalfTo @{Add="svc-kssbook"}
}

Room lists (optional) ​

Importing from room lists only shows rooms that are in a room list:

powershell
New-DistributionGroup -Name "KSS Book Rooms" -RoomList
Get-Mailbox -RecipientTypeDetails RoomMailbox -ResultSize Unlimited | ForEach-Object {
  Add-DistributionGroupMember -Identity "KSS Book Rooms" -Member $_.PrimarySmtpAddress }

4. Add the connection in KSS Book ​

  1. Calendar connections → Add connection → Exchange Server.
  2. Server: connection name, EWS address and certificate validation. Under advanced settings the server version header defaults to Exchange 2013, which works with all supported versions.
  3. Service account: authentication, user name and password.
  4. Room access: impersonation or delegate access.
  5. Test and save: enter a room address and test the connection, then save it.
  6. On the card, import the rooms from the room lists or connect rooms by hand.

If the server address, user name, authentication method or certificate setting changes, enter the password again.

5. Room mailbox settings ​

To show the real meeting subject on the door display:

powershell
Get-Mailbox -RecipientTypeDetails RoomMailbox -ResultSize Unlimited |
  Set-CalendarProcessing -AddOrganizerToSubject $false -DeleteSubject $false `
    -DeleteComments $false -RemovePrivateProperty $false

This only affects invitations sent from now on.

Troubleshooting ​

SymptomLikely cause and fix
User name or password rejected (401)Check the credentials, password expiry and account lockout; enter the new password.
Authentication method not acceptedChoose the other method (NTLM/Basic) or enable Windows authentication for EWS in IIS.
NTLM sign-in could not completeA proxy in between may not support NTLM; try Basic.
Access denied (HTTP 403)EWS is off for the service account: Set-CASMailbox <account> -EwsEnabled $true.
No EWS at this address / redirectsEnter the full EWS address; turn off forms-based authentication for EWS on the proxy.
Certificate not trustedChoose the root certificate option and add the root certificate.
Cannot connect to the serverCheck the EWS address and DNS; contact the KSS team about network access.
No ApplicationImpersonation rightAssign the role; it can take a few minutes.
No access to the room calendarWith delegate access, run Add-MailboxPermission.
Cannot reply on behalf of the roomGrant it with Set-Mailbox <room> -GrantSendOnBehalfTo <account>.
Exchange version not supportedExchange Server 2013 or later is required.
Import from room lists is emptyExchange has no room list; create one or add rooms by hand.
Organizer shown instead of the subjectSet-CalendarProcessing has not been applied (only new invitations are fixed).