> 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-places.md). Agents can also search and read this documentation through its [MCP server](https://docs.gospace.com/~gitbook/mcp).

# Microsoft Places

Sync buildings, floors, rooms between Microsoft Places and gospace

Connect gospace AI to Microsoft Places to keep your buildings, floors, rooms and desks in sync between the two. You can send spaces you designed in gospace AI to Microsoft, bring buildings from Microsoft into gospace AI, and link each gospace AI room to its Exchange room mailbox so it can be booked from Outlook and Teams.

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

You need:

* A gospace AI account with permission to manage integrations.
* Your locations set up in gospace AI, with their floors and rooms.
* A Microsoft 365 administrator who can:

  * grant admin consent to application permissions for Microsoft Graph (a **Global Administrator** or **Privileged Role Administrator**), and
  * run PowerShell against Exchange Online as an **Exchange Administrator** who belongs to the **Organization Management** role group.

  A Global Administrator can do all of it.
* **PowerShell 7.4 or later** on the administrator's computer.

> **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 - Places Integration**.

> **Warning:** **Setup turns Microsoft Places on for your organisation.** The last setup step enables buildings, the Places web app, Places Finder and space analytics for everyone in your tenant. If your organisation doesn't use Microsoft Places today, agree this with your IT team before you start.

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

#### Microsoft Graph permissions <a href="#microsoft-graph-permissions" id="microsoft-graph-permissions"></a>

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

| Permission            | Why gospace AI needs it                                                 |
| --------------------- | ----------------------------------------------------------------------- |
| `Place.Read.All`      | Read your buildings, floors, rooms and desks from Microsoft Places      |
| `Place.ReadWrite.All` | Create and update places when you choose to send spaces from gospace AI |

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

gospace AI only writes to Microsoft Places when someone on your team selects **Send spaces** and applies the plan. Bringing spaces in and linking rooms write nothing to Microsoft.

#### Exchange Online roles <a href="#exchange-online-roles" id="exchange-online-roles"></a>

Microsoft requires two Exchange Online roles for any app that creates or updates places with application permissions. The setup script assigns them to the gospace AI app:

| Role                              | What Microsoft says it is for                                                         |
| --------------------------------- | ------------------------------------------------------------------------------------- |
| `TenantPlacesManagement`          | To manage Places                                                                      |
| `MailRecipient` (Mail Recipients) | To manage users and mailboxes. Rooms and workspaces in Places are backed by mailboxes |

Microsoft documents this requirement on its [create place](https://learn.microsoft.com/en-us/graph/api/place-post?view=graph-rest-1.0) and [update place](https://learn.microsoft.com/en-us/graph/api/place-update?view=graph-rest-1.0) pages. See [Role Based Access Control for Applications in Exchange Online](https://learn.microsoft.com/en-us/exchange/permissions-exo/application-rbac).

#### Microsoft Places settings <a href="#microsoft-places-settings" id="microsoft-places-settings"></a>

The setup script turns on these tenant settings:

| Setting                 | What it does                                                                              |
| ----------------------- | ----------------------------------------------------------------------------------------- |
| `EnableBuildings`       | Makes buildings visible in Places, and lets apps list your places through Microsoft Graph |
| `EnablePlacesWebApp`    | Turns on the Places web app                                                               |
| `PlacesFinderEnabled`   | Turns on Places Finder                                                                    |
| `SpaceAnalyticsEnabled` | Turns on space analytics                                                                  |

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

1. In **Settings → Connectors**, select **Add connector**.
2. Choose the Microsoft **Places** 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 you return to setup.

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

### Step 2: Run the tenant setup <a href="#step-2-run-the-tenant-setup" id="step-2-run-the-tenant-setup"></a>

The **Places** step shows three PowerShell commands. Your administrator runs them once, in order, in PowerShell 7.4 or later. Select **Copy** next to each command, paste it into PowerShell and run it.

1. **Install modules.** Installs the Exchange Online, Microsoft Graph, Microsoft Places and Microsoft Teams PowerShell modules.
2. **Assign roles.** Checks that admin consent was granted, then assigns the two Exchange Online roles to the gospace AI app. It opens a browser for the administrator to sign in. When it succeeds, it ends by printing `GOSPACE_MS_PLACES_APPLICATION_AUTHORIZATION_VERIFIED`.
3. **Enable Places.** Signs in to Microsoft Places and turns on the settings above. When it succeeds, it ends by printing `GOSPACE_MS_PLACES_TENANT_SETTINGS_VERIFIED`.

You can show the commands again at any time from **Edit setup**. Running them again changes nothing.

> **Note:** Microsoft can take time to apply these changes. Role assignments can take **30 minutes to 2 hours**, and Places settings **up to 12 hours**. If something isn't visible right after setup, wait and try again.

### Step 3: Manage your spaces <a href="#step-3-manage-your-spaces" id="step-3-manage-your-spaces"></a>

Open the connector from **Settings → Connectors** and choose a **Location**. The connector shows these tabs:

| Tab                   | What it does                                                                                                                                  |
| --------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
| **Rooms**             | Link the rooms of a building to their Exchange room mailboxes. Only shown for a building that isn't connected to a Microsoft Places building. |
| **Send spaces**       | Send a gospace AI building and its floors to Microsoft Places, as a new place or into an existing one                                         |
| **Bring spaces**      | Bring a building and its floors from Microsoft Places into gospace AI                                                                         |
| **Desk pools**        | TODO                                                                                                                                          |
| **Desk reservations** | TODO                                                                                                                                          |

Every tab shows you the plan before anything is applied. The **Activity** panel lists each run and its result.

#### Link rooms to their mailboxes <a href="#link-rooms-to-their-mailboxes" id="link-rooms-to-their-mailboxes"></a>

Use this when your meeting rooms already exist as room mailboxes in Exchange, but the building isn't set up in Microsoft Places. You tell gospace AI which mailbox belongs to which room. Nothing is created or changed in Microsoft.

1. Open the **Rooms** tab for the building.
2. Select **Download template**. It lists every room in the building, with an empty `mailbox` column.
3. Fill in the mailbox address of each room you want to link, for example `boardroom@yourcompany.com`. Leave a cell empty to keep that room as it is.
4. Select **Upload CSV**, then drop in the filled template.
5. Review the changes, then apply them. Any row that couldn't be linked is listed with the reason.

Rows are matched on `room_id`, or on `external_id` if you use your own codes. They are never matched on the room name.

To link or unlink just a few rooms, edit them one by one in the building's rooms table (**Locations → your building → Rooms**).

> **Note:** A building that is connected to a Microsoft Places building, because you sent it to or brought it from Places, has no **Rooms** tab. Its rooms are linked automatically.

#### Send floor plans <a href="#send-floor-plans" id="send-floor-plans"></a>

Floor plans are published to Microsoft as you, not as gospace AI. The person who sends them needs their own Microsoft connection, which is on the **Connect** step of **Edit setup**.

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

**There is no Rooms tab.** The building is connected to a Microsoft Places building, so its rooms are linked automatically. You may also need permission to manage integrations and to edit configuration.

**"No room mailbox with this address in your Microsoft tenant."** Check the spelling of the address, or create the room mailbox in Exchange first. If the address is right and the tenant setup was completed recently, wait a few hours and try again. Microsoft can take time to list new rooms.

**"This Microsoft room belongs to a Places building already connected to another location."** Link the room from that location's Places connection, or disconnect that building first.

**"This mailbox is already linked to another room."** A mailbox can belong to one room only. Unlink it from the other room first.

**"Microsoft Graph admin consent is incomplete" when running Assign roles.** Admin consent was not granted, or was granted without all permissions. Go back to **Step 1**, select **Connect with Microsoft** again and accept, then run the command again.

**A PowerShell command fails asking for PowerShell 7.4.** Install PowerShell 7.4 or later, open a new PowerShell 7 window and run the command again.

**Anything else.** Contact gospace support with the run from the **Activity** panel.

<br>


---

# 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-places.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.
