Search K
Appearance
Appearance
Overview Use this guide to create and configure a Microsoft Azure (OAuth) service account in MinuteView Console. This service account uses OAuth 2.0 with delegated (user-login) permissions to enable system-level access to Microsoft services for:
- SharePoint — Access and manage files, lists, and sites via Microsoft Graph
- OneDrive — File storage and synchronization operations
- Microsoft Graph API — Access users, groups, mail, calendars, and other Microsoft 365 data
- Workflow automation — Trigger Microsoft operations from MinuteView Automations
This is the OAuth (delegated) variant — it requires a user to log in and authorize access. For server-to-server access using application-only permissions (no user login), use the Azure Service Account instead.
Unlike a third-party Microsoft account (which is linked to an individual user), a service account operates at the system level with group-based permissions. This means workflows and automations use a shared Microsoft identity rather than a specific user's personal account.
The Azure OAuth service account setup involves an OAuth flow where part of the process happens in the user's browser and part happens on the MinuteView server itself. After the user authenticates with Microsoft and is redirected back to MinuteView, the server exchanges the authorization code for a token by calling Microsoft's API directly. This means the MinuteView server must have outbound internet access to the following domains.
The following domains must be accessible via HTTPS (port 443) from the server where MinuteView is installed:
| Domain | Purpose |
|---|---|
login.microsoftonline.com | OAuth token exchange, token refresh, and authorization |
graph.microsoft.com | Microsoft Graph API calls (SharePoint, OneDrive, user profiles, etc.) |
Server Access Required
These domains must be reachable from the server, not just from the user's PC. The user's browser handles the initial login redirect, but the token exchange and all subsequent API calls are made server-side. If the server cannot reach these domains, the service account setup will fail with a connection error even though the Microsoft login page loaded successfully in the browser.
https://portal.azure.comMinuteView OAuth Service IntegrationFrom the app's Overview page, note:
MinuteView OAuth IntegrationUser.Read — Sign in and read user profileFiles.ReadWrite.All — Full access to user's filesSites.ReadWrite.All — Read and write items in all site collectionsoffline_access — Maintain access to data (enables refresh tokens)| Field | Description | Example |
|---|---|---|
| Name | A descriptive name for this service account | Azure-OAuth-ServiceAccount-Prod |
| Service Account Type | Select Microsoft Azure (OAuth) from the dropdown | |
| Tenant ID | Your Azure AD Directory (tenant) ID | 87654321-4321-4321-4321-210987654321 |
| Client ID | The Application (client) ID from Azure app registration | 12345678-1234-1234-1234-123456789012 |
| Client Secret | The client secret value from Azure | (sensitive — stored securely) |
| Scope | OAuth scopes (space-separated). Include offline_access for token refresh. | openid profile offline_access https://graph.microsoft.com/.default |
| Callback URL | The MinuteView OAuth redirect URI | https://your-server/MinuteView/PageGeneral/ServiceCallback.aspx |
MinuteView automatically manages OAuth tokens for this service account:
offline_access scope)MinuteView offers two Azure service account types:
| Azure (OAuth) — this page | Azure (Client Credentials) | |
|---|---|---|
| Authentication | User logs in and authorizes | App authenticates with secret/cert — no user login |
| Permissions | Delegated (acts as the signed-in user) | Application-only (acts as the app itself) |
| Use when | You need to act on behalf of a specific user, or the API requires delegated permissions | You need server-to-server access without user interaction |
| Token refresh | Uses refresh token (requires offline_access scope) | Requests new token with client credentials |
"Failed to retrieve authentication token" / Connection error
Redirect URI Mismatch
AADSTS700016: Application not found
AADSTS7000215: Invalid client secret
Insufficient Privileges
Token Refresh Failures
offline_access is included in the scope