QMSDocs
Setup guidelinesMicrosoft 365 setup
Admin
Updated 30 Nov 2026 · v1.0

Microsoft 365 setup

A one-off setup that lets BetterQ hold online appointments as Microsoft Teams meetings. Follow it once, paste four values into BetterQ, and run one script.

Before you start

This page is for whoever administers your Microsoft 365 account. You only need to do it once, and only if you want to offer online appointments — everything else in BetterQ works without it.

By the end you will have four values to paste into BetterQ: a directory (tenant) ID, an application (client) ID, a client secret, and the object ID of the account your meetings are organised under.

What you need first
A Microsoft 365 subscription with Teams
The plan your organisation already uses for email and Teams. BetterQ does not provide one.
Administrator access
You need to be able to sign in to the Microsoft Entra admin center and approve permissions for your whole organisation. An ordinary staff account cannot do this.
An account to organise the meetings
A licensed user account whose name every meeting is created under — for example a shared address such as appointments@yourcompany.com. It can be an existing account or a new one.
Note
Set aside about fifteen minutes. Steps 1 to 4 happen in Microsoft’s admin website, step 5 in BetterQ, and step 6 in a terminal window.

Step 1 — Find your directory (tenant) ID

This value identifies your organisation to Microsoft. Every organisation has exactly one and it never changes.

1
Open the Microsoft Entra admin center
Go to entra.microsoft.com and sign in with your administrator account. Keep this tab open — steps 2 to 4 all happen here.
2
Open the overview
In the menu down the left, choose Entra ID, then Overview.
3
Copy the tenant ID
Under Basic information you will see Tenant ID. Use the small copy button beside it and paste it somewhere safe for now — a blank note will do.
The tenant ID sits under Basic information on the Entra ID overview.

Step 2 — Register BetterQ and get the application (client) ID

Registering an application tells Microsoft that BetterQ is allowed to talk to your account. It creates an identity of its own, separate from any person.

1
Open App registrations
Still under Entra ID in the left-hand menu, choose App registrations.
2
Start a new registration
Choose New registration at the top of the page.
3
Name it and register
Give it a name you will recognise later — BetterQ is the obvious choice. Leave the account types on the default, which keeps it to your organisation only, and leave the redirect URI blank. Choose Register.
4
Copy the application ID
You land on the new application’s overview. Under Essentials, copy Application (client) ID and keep it with the tenant ID from step 1.
Tip
The Directory (tenant) ID is shown on this same page, just below the application ID. If you skipped step 1, you can copy it here instead.
App registrations, with New registration at the top.
The application (client) ID on the registration’s overview page.

Step 3 — Create a client secret

A client secret is the password BetterQ uses to prove it is the application you just registered.

1
Open Certificates & secrets
In the menu on the left of the BetterQ registration, under Manage, choose Certificates & secrets, then the Client secrets tab.
2
Add a secret
Choose New client secret. Give it a description you will recognise, choose how long it should last, and confirm.
3
Copy the value immediately
The new secret appears in the list. Copy what is in the Value column — not the Secret ID beside it — and keep it with your other two values.
The value is shown only once
Leave or refresh this page and the value is hidden for good. If that happens, delete the secret and create another — there is no way to read an existing one back.
Note the expiry date
Every secret has an end date, shown in the Expires column. When it passes, online bookings stop working until you create a new secret and paste it into BetterQ. Put a reminder in a calendar now.
Certificates & secrets, before any secret exists.
Copy the Value column — not the Secret ID beside it.

Step 4 — Allow the app to create meetings

The registration exists but is not yet allowed to do anything. This step gives it permission to create online meetings, and then approves that permission on behalf of your organisation.

1
Open API permissions
In the BetterQ registration’s left-hand menu, under Manage, choose API permissions.
2
Add a permission
Choose Add a permission, then Microsoft Graph, then Application permissions — not delegated permissions. This matters: BetterQ creates meetings on its own, without a person signed in.
3
Choose the meetings permission
In the list that appears, expand OnlineMeetings and tick OnlineMeetings.ReadWrite.All, described as “Read and create online meetings”. Choose Add permissions.
4
Approve it for your organisation
Back on the permissions list, the new permission shows a status of Not granted. Choose Grant admin consent for [your organisation] above the table, then Yes in the confirmation box. The status changes to granted.
Warning
Adding the permission is not enough on its own — it does nothing until admin consent is granted. If you stop after choosing Add permissions, every online booking will still be refused.
Ticking OnlineMeetings.ReadWrite.All in the permissions panel.
Granting admin consent — the step that actually switches the permission on.

Step 5 — Choose the meeting organiser

Every meeting BetterQ creates has to belong to somebody. Pick one licensed account for that — a shared address such as appointments@yourcompany.com is tidier than a named person’s, because meetings keep working when people change roles or leave.

The account needs a Microsoft 365 licence that includes Teams. Nobody has to sign in to it or watch it: BetterQ creates and deletes the meetings on its own, and the meetings do not appear in that account’s calendar.

Copy its object ID

BetterQ identifies the account by its object ID, not by its email address. Microsoft gives every account an object ID — a long string of letters, numbers and dashes — and it is the only form Microsoft accepts for creating meetings.

1
Open the account
In the Microsoft Entra admin center, choose Entra ID, then Users, then click the account you picked.
2
Copy the object ID
On that account’s page, find Object ID and use the copy button beside it. It looks like 00000000-0000-0000-0000-000000000000.
Not the email address, and not the app’s ID
Two easy mistakes. An email address will not work — Microsoft refuses it. And this is the user’s object ID, not the object ID shown on the BetterQ app registration in step 2; those are different accounts entirely.

That object ID is the fourth and last value you need.

The object ID sits on the account’s own page in Entra ID → Users, just under the user principal name.

Step 6 — Paste the values into BetterQ

In BetterQ, select your name at the bottom of the menu on the left and choose App Settings. A window opens over the screen you were on; choose Microsoft Teams in the list down its left. You need an administrator role that includes Manage organisation settings. The section is headed Microsoft Teams — “Connect Microsoft 365 so online appointments can be held as Teams meetings.” — with a Read the setup guide button that opens this page, and a Save changes button. Fill in the four boxes with what you collected:

Setting
What it does
Directory (tenant) ID
From step 1.
Application (client) ID
From step 2.
Client secret
From step 3. Once saved it is never shown again — leaving the box blank later keeps the saved one.
Meeting organiser (object ID)
From step 5 — the account’s object ID, not its email address. The hint under the box reads “The object ID of the email address every meeting is created under.”

The marker in the top-right corner of the card turns from Not connected to Connected as soon as all four boxes hold something — but nothing is kept until you choose Save changes. The message Organisation settings saved. Changes apply across every queue. confirms it. Closing the window without saving loses what you typed.

Note
There is one step left. Being Connected means BetterQ has the details — it does not yet mean Microsoft will accept them. Carry on to step 7.
The Microsoft Teams section with all four values filled in, and the setup script below.

Step 7 — Run the setup script

The last step does two things Microsoft’s admin website cannot: it lets your registered application create meetings as the organiser account, and it lets customers walk straight into an appointment instead of waiting to be admitted. Both have to be run as commands, and BetterQ writes them for you.

1
Copy the script from BetterQ
In the Microsoft Teams section, below the four boxes, a grey box explains: “The Microsoft admin screens cannot grant this application access to the organiser account, or let guests join without being admitted.” As soon as the directory ID, application ID and meeting organiser are filled in, a Setup script appears under it with your own values already in it — you don’t have to save first. Until then the box reads “Fill in the directory ID, application ID and meeting organiser above, and the script to run will appear here with your values already in it.” Choose Copy script; it reads Copied for a moment.
2
Open PowerShell as administrator
On a Windows computer, search for PowerShell in the Start menu, right-click it and choose Run as administrator. Windows asks you to confirm — choose Yes. This step will not work on a Mac; see below.
3
Paste and run
Paste the script and press Enter. A browser window opens asking you to sign in — use the Microsoft account that administers your organisation, the same one you used for steps 1 to 4. The script then does the rest, printing each of its seven steps as it starts — for example [3/7] Signing in to Microsoft Teams — so you can see it is still working, and finishes with Done. Allow up to 30 minutes for this to take effect. The first run can sit on step 2 for a few minutes while it downloads the Microsoft Teams add-on.
4
Wait a little
Microsoft can take up to about half an hour to apply the change. If an online booking is refused straight after running the script, wait before looking for another cause.
Windows may block scripts on a new computer
A computer that has never run PowerShell scripts usually refuses to load the Microsoft Teams add-on. The setup script deals with this for you: it lifts that block for the PowerShell window you are using, and Windows puts it back as soon as you close the window. You are not asked anything, and nothing is changed permanently on the computer.
Two different administrators
Run as administrator is about the Windows computer — it lets PowerShell install what it needs. Signing in a moment later is about your Microsoft account, which has to be one that administers Teams. They are unrelated, and you may well need two different people if the computer is not your own.
Safe to pass on
The script never contains your client secret — this step does not need one. It holds only the three identifiers you collected, so you can email it to whoever administers your Microsoft account.
Note
Running it a second time is harmless. It updates what is already there rather than failing, so it is safe to re-run if you are unsure whether it worked.

Why customers can join on their own

Nobody in an online appointment is signed in to Teams. The organiser is an unattended account that never joins, and both the customer and your representative arrive through the link as guests. Left at Microsoft’s defaults, Teams holds them at Someone will let you in when the meeting starts, waiting for an organiser who is never coming.

The script therefore also gives the organiser account a meeting setting of its own: guests join without a waiting room, and the first person to arrive starts the meeting. That is granted only to the organiser account, so meetings created by anyone else in your organisation keep whatever lobby rules they have today.

Online appointments are recorded
The same setting allows the organiser account’s meetings to be recorded, and BetterQ asks Teams to start recording every online appointment automatically, because nobody in the meeting can start a recording themselves. Once the script has run, each online appointment is recorded. The recording is kept in your organisation’s Microsoft 365, where Teams keeps meeting recordings — not in BetterQ — so your own Microsoft settings decide who can see it and how long it is kept. Tell your customers and your staff that these meetings are recorded.
The link is the only protection
This means anyone holding an appointment’s link can open that meeting, including before the representative joins. Each link is unique to one booking, is never published, and stops working once the appointment is finished or cancelled — but there is no second gate behind it. Treat an appointment link the way you would a booking reference.

If you only have a Mac

This one step needs a Windows computer. PowerShell itself runs on a Mac, but the Microsoft Teams add-on it needs signs in through parts of Windows that do not exist on macOS. There is no setting or version that works around it.

What you will see if you try
The script checks first and stops at its first step, in red: Setup did not complete: This script has to run on Windows. It contains no password, so you can send it to a colleague who has a Windows computer. Nothing is broken and nothing was changed — it simply cannot run there.

The practical answer is to hand it to someone who has Windows. The script holds no password of any kind — only the three identifiers you collected — so you can safely send it by email or chat, and they can run it without needing anything else from you.

  • Send it to a colleague with a Windows computer, or to whoever manages your Microsoft account.
  • Or run it once on any Windows machine you can borrow. It only has to be done once for your whole organisation, not once per person.
Tip
Everything else in this guide works fine on a Mac — steps 1 to 6 all happen in a web browser. Only this last step needs Windows.

Checking it worked, and what to do if it didn’t

You don’t have to guess. Once all four values are saved, a line reading “Check the connection works before customers rely on it.” and a Send a test meeting button appear at the bottom of the grey box in the Microsoft Teams section. Choose it: the button reads Testing… while BetterQ creates a real 30-minute meeting called “BetterQ connection test”, starting now, using the details you saved, and emails the joining link to you.

What you seeWhat it means
It works. A test meeting was created and the link emailed to…Everything is in place. Open the email and join the meeting if you would like to see what a customer receives — you can ignore it otherwise, and it expires on its own.
Microsoft refused to create the meetingThe credentials are accepted but something after them is missing. Check admin consent was granted in step 4, and that the setup script in step 7 has actually been run.
Save your changes first — the test runs against the saved connection.The test uses the saved connection, not what is currently typed on screen. Choose Save changes, then test again.
The test could not be started. Check your connection and try again.BetterQ couldn’t start the test at all — usually your own internet connection dropped. Try again in a moment.
This is the real thing
The test does exactly what a customer booking does, so passing it means online appointments will work. Credentials alone are not proof — they can be accepted and the meeting still refused, which is what this catches.

Once it passes, switch Online meeting on for a queue and a service and book a real appointment to see it end to end. See Online appointments for how to switch the modes on.

What’s happeningWhat to check
The Microsoft Teams section still says Not connectedOne of the four boxes is empty. All four are needed before BetterQ treats the connection as usable.
Online meeting cannot be switched onSame cause — finish step 6 first.
Bookings are refused with The online meeting could not be set upUsually the script in step 7 was never run, or was run less than half an hour ago. After that, check that admin consent was granted in step 4 — adding the permission alone is not enough.
The script stops with This script has to run on WindowsYou are running it on a Mac or Linux. It has to be run on Windows — see step 7. Nothing was changed, so simply run it again on a Windows computer.
The script stops with a message saying running scripts is disabled on this systemYour organisation’s own rules on that computer override the block the script lifts for itself. Ask whoever looks after the computer to allow it, or run the script on another Windows computer. Nothing was changed, so simply run it again.
The script ended without saying DoneIt stopped early. A red line starting Setup did not complete: says why, followed by Nothing further was attempted. Fix the problem above, then run the script again. The last numbered step above it is the one that failed. Fix what it names and run the whole script again.
It worked before and has now stoppedThe client secret has most likely expired. Create a new one (step 3) and paste it into BetterQ. Nothing else needs redoing.
The organiser account was deleted or lost its licenceChoose another account, update the Meeting organiser box, and run the setup script again so the new account is covered.
Warning
Appointments already booked keep their meetings if the connection later breaks. Only new bookings are refused — so a customer booked for tomorrow can still join even while you are fixing the setup.
Was this page helpful?