Applies to: Cloud & Self-Hosted
Audience: Site Administrators
Time: Approximately 1 hour
This guide explains how to configure the Microsoft SharePoint and Microsoft OneDrive integration with Axero. This integration enables two-way file synchronization between your Axero platform and Microsoft 365, allowing users to access, upload, and manage files across both platforms.
The setup takes approximately 1 hour and requires a system administrator with the appropriate Microsoft Entra ID permissions. After setup, users can connect their SharePoint and OneDrive accounts from within the Axero platform.
For end-user setup instructions, see SharePoint and OneDrive Sync User Setup.
Before you start, ensure you have:
Caution: Use a separate Entra app registration for SharePoint and OneDrive. Do not reuse the same app registration used for Office 365 email or Outlook Calendar Sync. Axero's token cache is scoped by connected account. When email and SharePoint share the same connected account, saving email settings or forced reauthentication (e.g., password expiration) refreshes the cached token and invalidates the token SharePoint uses, disconnecting external drives.
/oauth2/sharepoint/callback
https://your-site.com/oauth2/sharepoint/callback
Important: The Redirect URI must use HTTPS and match your Axero URL exactly, including path and casing. Do not include a trailing slash or trailing spaces.
Important: Store the client secret securely and treat it as a sensitive credential. This secret provides access to your organization's SharePoint and OneDrive data. Record the expiration date in your team calendar and set a reminder to rotate the secret at least two weeks before it expires.
Checkpoint: Before continuing, confirm you have all three values from your Entra app registration: the Application (client) ID, the Directory (tenant) ID, and the client secret value. All API permissions should show green checkmarks under the Status column. If any permission shows "Not granted," revisit step 1.3 and select Grant admin consent.
Important: If your organization also uses the Office 365 email integration, use a dedicated service mailbox (e.g., notifications@yourcompany.com) with a permanent password. Exclude this account from password expiration and forced reset policies. When the email account's password expires, the next reauthentication refreshes the shared token cache and can disconnect SharePoint drives.
notifications@yourcompany.com
Checkpoint: Before continuing, verify the Office 365 integration shows a connected status under Control Panel > System > Integrations. If the status does not show as connected, revisit the Tenant ID, Client ID, and Client Secret values entered above.
Complete the section below that matches the drive type you selected when adding the external drive:
For SharePoint Sites
For OneDrive
No additional site selection is required. The drive connects directly to the authenticated user's OneDrive storage.
To enable personal My Files access, configure the following system property:
ShowNewMyAccountFilesView
false
true
Once enabled, users can connect to SharePoint or OneDrive through My Content > My Files.
By default, users cannot download files from external drives to their local devices. If your organization wants to allow users to download SharePoint and OneDrive files, you can enable this feature:
EnableDownloadExternalFile
After completing the configuration, verify the integration is working correctly:
If the drive does not appear or files fail to load, see the Troubleshooting section below.
Your SharePoint and OneDrive integration is fully configured. Users can now access external files through the configured locations in your Axero platform. Files sync automatically on a recurring schedule, and users can trigger a manual sync at any time from the drive view.
Tip: Most integration issues stem from incorrect redirect URIs or missing admin consent. Always verify these settings first before investigating other potential causes.
"Invalid redirect URI" error
Verify the redirect URI in Entra exactly matches your Axero site URL with the /oauth2/sharepoint/callback path.
"Insufficient permissions" error
Confirm admin consent was granted for all required Microsoft Graph permissions.
"Application not found" error
Verify the Application (client) ID is correct and the app registration exists.
Authentication suddenly stopped working
Check whether the client secret has expired in Entra. See the Rotating Client Secrets section for renewal steps.
Unable to connect to SharePoint sites
Verify the connecting user has at least read access to the SharePoint site.
Drive stopped working after staff change
If the account used to authenticate the drive connection has been disabled or lost access, the connection will fail silently. Re-authenticate with an active account under Control Panel > System > External Drives.
Files not syncing
Check for file name restrictions (special characters, path length) and verify file sizes are within supported limits. Files up to 250 MB upload directly. Larger files use chunked upload and can be up to 250 GB, subject to your organization's tenant policy.
Integration not appearing in Axero
Verify the Office 365 integration shows a connected status under Control Panel > System > Integrations. If it shows as disconnected, re-enter the Tenant ID, Client ID, and Client Secret values from your Entra app registration.
SharePoint drives disconnect after saving Office 365 email settings
This occurs when the SharePoint integration and the Office 365 email integration share the same connected account. Saving email settings (even without changes) or forced reauthentication after a password expiration refreshes the cached token for that connected account, overwriting the token SharePoint uses. To restore access, reconnect the affected external drives under Control Panel > System > External Drives. To prevent recurrence, create a separate Entra app registration and connected account for email and SharePoint (see the Caution in Step 1).
SharePoint drives disconnect after email user's password expires
When the Microsoft account used for the Office 365 email integration has a temporary or expiring password, the next required reauthentication refreshes the cached token for the shared connected account and invalidates the token SharePoint uses. Use a dedicated service mailbox with a permanent password and exclude it from password expiration policies.
Client secrets expire based on the duration selected during creation. To rotate a secret without service interruption:
To fully remove the SharePoint and OneDrive integration:
Important: Removing the integration disconnects all users from their external drives. Files remain in SharePoint and OneDrive but are no longer accessible from Axero. Notify affected users before proceeding.
Next Steps: Now that the administrator setup is complete, share the user setup instructions with your team: SharePoint and OneDrive Sync User Setup
We are always working to improve our documentation. If you encounter an issue not covered here, or if a step could be clearer, let us know through a Support Case so we can help you and improve this guide for everyone.
is requesting access to a wiki that you have locked: https://my.axerosolutions.com/spaces/5/axero-documentation/wiki/view/38439/sharepoint-and-onedrive-sync-administrator-setup
Your session has expired. You are being logged out.