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.
Step 1 — Find your directory (tenant) ID
This value identifies your organisation to Microsoft. Every organisation has exactly one and it never changes.
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.
Step 3 — Create a client secret
A client secret is the password BetterQ uses to prove it is the application you just registered.
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.
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.
00000000-0000-0000-0000-000000000000.That object ID is the fourth and last value you need.
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:
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.
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.
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.
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.
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.
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 see | What 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 meeting | The 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. |
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 happening | What to check |
|---|---|
| The Microsoft Teams section still says Not connected | One of the four boxes is empty. All four are needed before BetterQ treats the connection as usable. |
| Online meeting cannot be switched on | Same cause — finish step 6 first. |
| Bookings are refused with The online meeting could not be set up | Usually 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 Windows | You 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 system | Your 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 Done | It 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 stopped | The 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 licence | Choose another account, update the Meeting organiser box, and run the setup script again so the new account is covered. |

