My Docs setup: connect Microsoft 365, Google Drive and Zoho WorkDrive
Step-by-step instructions for your IT administrator to switch on Microsoft, Google and Zoho sign-in so employees can open their files in My Docs.
Before you start
Each service needs a one-time sign-in app created by an administrator of that service. Once it exists, every employee connects their own account with one click, and Ops Compass only sees what that person is already allowed to see.
| You will need | Why |
|---|---|
| Your Ops Compass address, e.g. https://compass.1879techhub.com | The services send people back here after sign-in. |
| The redirect address: https://<your Ops Compass address>/api/oauth/calendar/return | The same address is used for Calendar and My Docs, for every service. |
| Admin rights in Microsoft Entra, Google Cloud and/or the Zoho API Console | Only admins can create sign-in apps and grant consent. |
| Access to the Ops Compass secure settings (secrets) | Where the client ID and secret are stored. They never reach anyone's browser. |
Microsoft 365 (OneDrive, SharePoint, Word, Excel, PowerPoint)
- 1Sign in to entra.microsoft.com as an administrator and open Identity › Applications › App registrations › New registration.
- 2Name it “Ops Compass”. Under Supported account types choose Accounts in this organizational directory only (or any organization if you serve several tenants).
- 3Under Redirect URI choose Web and enter https://<your Ops Compass address>/api/oauth/calendar/return. Select Register.
- 4On the Overview page copy the Application (client) ID and the Directory (tenant) ID.
- 5Open Certificates & secrets › New client secret, choose an expiry (24 months recommended) and copy the Value immediately — it is shown once.
- 6Open API permissions › Add a permission › Microsoft Graph › Delegated permissions and add: openid, profile, email, offline_access, User.Read, Files.ReadWrite.All, Sites.ReadWrite.All, and Calendars.ReadWrite if you also use Calendar sync.
- 7Select Grant admin consent for your organisation and confirm every permission shows a green tick.
- 8In the Ops Compass secure settings add MICROSOFT_OAUTH_CLIENT_ID (client ID), MICROSOFT_OAUTH_CLIENT_SECRET (secret value) and MICROSOFT_OAUTH_TENANT (tenant ID; leave out to allow any organisation).
Google Drive (Docs, Sheets, Slides, shared drives)
- 1Sign in to console.cloud.google.com with your Google Workspace admin account and create (or choose) a project called “Ops Compass”.
- 2Open APIs & Services › Library and enable the Google Drive API (and the Google Calendar API if you use Calendar sync).
- 3Open Google Auth Platform › Branding (OAuth consent screen). Choose Internal so only your organisation can sign in, and fill in the app name, support email and your Ops Compass address as the home page.
- 4Open Data access › Add or remove scopes and add …/auth/userinfo.email and …/auth/drive (plus …/auth/calendar.events for Calendar).
- 5Open Clients › Create client › Web application. Under Authorised redirect URIs add https://<your Ops Compass address>/api/oauth/calendar/return and select Create.
- 6Copy the Client ID and Client secret.
- 7In the Ops Compass secure settings add GOOGLE_OAUTH_CLIENT_ID and GOOGLE_OAUTH_CLIENT_SECRET.
Zoho WorkDrive (Writer, Sheet, Show, team folders)
- 1Sign in to api-console.zoho.com (use your data centre's address, e.g. api-console.zoho.eu) as an administrator.
- 2Select Add Client › Server-based Applications.
- 3Name it “Ops Compass”, set the Homepage URL to your Ops Compass address and the Authorized Redirect URI to https://<your Ops Compass address>/api/oauth/calendar/return. Select Create.
- 4Copy the Client ID and Client Secret.
- 5In the Ops Compass secure settings add ZOHO_OAUTH_CLIENT_ID and ZOHO_OAUTH_CLIENT_SECRET.
- 6If your Zoho account is outside the US data centre, also add ZOHO_ACCOUNTS_URL, for example https://accounts.zoho.eu, https://accounts.zoho.in or https://accounts.zoho.com.au.
Check it works
- 1Open My Docs. The service's Connect button is no longer greyed out.
- 2Select Connect, sign in with a work account and accept the permissions.
- 3Your files appear. Open one with Edit live and save a small change — it updates in the original service.
- 4Ask a colleague to do the same with their own account.
The Connect button is still greyed out.
Both the client ID and the client secret must be saved for that service. Check the names match exactly, then reload My Docs.
Sign-in says the redirect address doesn't match.
The redirect address in the service must be exactly https://<your Ops Compass address>/api/oauth/calendar/return — same spelling, https, no trailing slash. Add one for every address people use, e.g. your custom domain.
Microsoft says admin approval is required.
Return to API permissions in Entra and select Grant admin consent.
It worked, then stopped.
The client secret probably expired or was replaced. Create a new one and update the secret in Ops Compass; people may need to select Reconnect.