> For the complete documentation index, see [llms.txt](https://docs.gospace.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.gospace.com/integrations/connecting-an-integration/microsoft-calendar.md). Agents can also search and read this documentation through its [MCP server](https://docs.gospace.com/~gitbook/mcp).

# Microsoft Calendar

Sync your calendar between Microsoft and gospace

Connect gospace AI to Microsoft Calendar (Outlook and Exchange Online) so gospace AI can use your people's upcoming meetings to forecast how busy your buildings will be or automate the meeting room assignment.

### Before you start <a href="#before-you-start" id="before-you-start"></a>

You need:

* A gospace AI account with permission to manage integrations.
* A Microsoft 365 administrator who can grant admin consent to application permissions for Microsoft Graph: a **Global Administrator** or **Privileged Role Administrator**.
* Recommended: your people in gospace AI, synced from Microsoft Entra ID. See Microsoft Entra ID (directory).

> **Note:** You don't need to create an app registration, client ID, client secret or tenant ID. gospace AI uses its own Microsoft app, **gospace AI - Calendar Integration**.

### What gospace AI is granted <a href="#what-gospace-ai-is-granted" id="what-gospace-ai-is-granted"></a>

An administrator grants these **application** permissions when connecting:

| Permission            | Why gospace AI needs it                                                                                           |
| --------------------- | ----------------------------------------------------------------------------------------------------------------- |
| `Calendars.Read`      | Read the calendars of the people who agreed to it                                                                 |
| `Calendars.ReadWrite` | Add the desks gospace AI reserves to people's calendars (**Desk reservations** in the Microsoft Places connector) |
| `User.ReadBasic.All`  | Find each mailbox by its address: a person's or a room's ID, name and email address                               |

The app also asks for `User.Read` and `User.ReadBasic.All` to sign you in.

> **Note:** Connecting makes reading possible. It doesn't make anyone's calendar readable by default. An admin can approve either for the organisation or allow gospace AI to only read the calendar of a person who agreed to it.

Calendar write permissions are required to automate meeting room assignments. If automated meeting room assignment is not a configured feature, the write permission is not exercised as forecasting and collaboration analysis requires read only.

### Whose calendars gospace AI reads <a href="#whose-calendars-gospace-ai-reads" id="whose-calendars-gospace-ai-reads"></a>

The admin can choose to either grant permissions for everyone in the organisation or to allow for individual opt-in.&#x20;

If opt-in is configured, each person decides for themselves:

| Their choice  | What gospace AI does                                                                |
| ------------- | ----------------------------------------------------------------------------------- |
| Not agreed    | Their calendar is not read                                                          |
| Forecasting   | Their own meetings are used to estimate whether they will be in the office, per day |
| Collaboration | Forecasting, plus who they meet                                                     |

A meeting lists everyone invited, including people who haven't agreed. gospace AI keeps the identity only of people who agreed. Everyone else is kept as a count.

### Step 1: Connect <a href="#step-1-connect" id="step-1-connect"></a>

1. In **Settings → Connectors**, select **Add connector**.
2. Choose the Microsoft **Calendar** connector from the Connector library.
3. Under **Admin consent required**, select **Connect with Microsoft**.
4. In the Microsoft window, sign in with an administrator account, review the permissions and accept.
5. The window closes and the connector shows as connected.

> **Warning:** If no window opens, your browser may have blocked the pop-up. Allow pop-ups for gospace AI and try again.

There is nothing to map and nothing else to set up.

### Step 2: Reading <a href="#step-2-reading" id="step-2-reading"></a>

Reading calendar data happens in either a scheduled daily job or a near real-time sync. If near real-time meeting automation is configured, real-time calendar sync is always switched on. Otherwise gospace only runs the daily scheduled sync.&#x20;

### Daily scheduled sync <a href="#real-time-calendar-sync-in-development" id="real-time-calendar-sync-in-development"></a>

gospace AI reads the calendars **once a day**, overnight, covering the **past 7 days and the next 28 days**. In a large organisation the read is spread across the day, so it doesn't use up your tenant's Microsoft limits at once.

The first read happens on the next daily run after you connect.

### Real-time calendar sync <a href="#real-time-calendar-sync-in-development" id="real-time-calendar-sync-in-development"></a>

Real-time sync lets gospace AI know within minutes when a meeting is created, moved, cancelled, declined, or changes its room, attendees or location. It is the foundation for automated meeting room booking.

#### How it works <a href="#how-it-works" id="how-it-works"></a>

1. gospace AI asks Microsoft to notify it whenever a watched calendar changes.
2. When something changes, Microsoft sends a short notice to gospace AI. The notice contains no meeting details, only which calendar changed.
3. gospace AI waits **five minutes** to collect any further changes, then reads that calendar once and works out what changed.
4. As a safety net, gospace AI also reads every watched calendar on a regular schedule, every two hours by default and daily, so a lost notice is caught.

Changes that gospace AI makes itself, such as a room it booked, are recognised and not reported back as new changes.

#### Which calendars are watched <a href="#which-calendars-are-watched" id="which-calendars-are-watched"></a>

* **Meeting rooms**, once each room is linked to its Exchange room mailbox. You link rooms in the **Rooms** tab of the Microsoft Places connector.
* **People who agreed** to have their calendar read.

You choose what is watched for your whole organisation, per location, or for individual people. Nothing is watched until you turn it on. You also choose which kinds of change matter to you: new meetings, cancellations, time changes, attendees, room, location or description.

To setup real-time calendar sync, contact gospace support.

#### What it needs from you <a href="#what-it-needs-from-you" id="what-it-needs-from-you"></a>

No new permissions. Real-time sync uses the same **gospace AI - Calendar Integration** app and the permissions listed above. Microsoft sends its notices straight to gospace AI, so nothing changes on your network.

#### What gospace AI keeps <a href="#what-gospace-ai-keeps" id="what-gospace-ai-keeps"></a>

For each watched calendar, gospace AI keeps a summary of the meetings in the coming weeks: times, attendees, room, location and whether the meeting is cancelled. The meeting description is never stored, only a fingerprint that shows whether it changed.

If you turn real-time sync off, gospace AI stops watching and deletes these summaries.

### Troubleshooting <a href="#troubleshooting" id="troubleshooting"></a>

**Nobody's calendar is being read.** Check that people access has been configured, either for individual groups or for the whole organisation. Connecting alone reads nobody.

**A person agreed, but their calendar isn't read.** Check that the person was synced into gospace and has a mailbox in Exchange Online.

**The connector shows as not connected.** Admin consent is missing or was withdrawn in Microsoft. Select **Reconnect** and accept again.

**Anything else.** Contact gospace support.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.gospace.com/integrations/connecting-an-integration/microsoft-calendar.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
