Applies to: Cloud & Self-Hosted
Audience: Site Administrators
Time: Approximately 1 hour
The steps below configure the Microsoft SharePoint and Microsoft OneDrive integration with Axero. This integration syncs files both ways between your Axero platform and Microsoft 365, so people can open, upload, and manage their files from either side.
The setup takes approximately 1 hour and requires a system administrator with one of the Microsoft Entra ID roles listed under Prerequisites. 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 keeps one saved sign-in token (the key it uses to reach Microsoft) for each connected account. When email and SharePoint share a connected account, saving email settings or a forced reauthentication (e.g., password expiration) refreshes that token. The refresh invalidates the token SharePoint uses and disconnects 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
You don't need to pick a site. The drive connects directly to the OneDrive storage of the account you signed in with.
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 > Files.
By default, users cannot download files from external drives to their local devices. To let users download SharePoint and OneDrive files, turn on this setting:
EnableDownloadExternalFile
After setup, check that the integration works:
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 come from an incorrect redirect URI or missing admin consent. Check those settings before anything else.
"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 fails silently. Re-authenticate with an active account under Control Panel > System > External Drives.
Files disappear from search and from Content widgets while the drive still appears connected
The drive still appears and its files still list, but a homepage widget goes empty. Axero reads synced file contents in the background through the integration's credentials. When that credential stops working, the files drop out of the search index and out of every Content List widget pointed at them, while the drive listing stays as it was. Check the exception log (Axero's record of errors) and the client secret's expiry in Entra, not the drive view. Then rebuild the search index. That is what brings the files back into results and refills the widgets. Reconnecting the drive is not the repair. Removing and re-adding one creates fresh file records that break anything pointing at the old ones, as described under Email Integration Conflicts below.
Files not syncing
Check for file name restrictions (special characters, path length) and verify file sizes are within supported limits. Axero sends every file to Microsoft in pieces through an upload session, so a file can be up to Microsoft's 250 GB limit, 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 stop it happening again, give email and SharePoint each their own Entra app registration and connected account (see Step 1: Configure Entra App Registration).
Before you reconnect: Axero matches synced files and folders to the drive they came from, so a drive that is removed and added again is treated as a new drive and its files are recorded fresh. Anything that pointed at a specific synced file, such as a Content widget or a link someone saved, points at the old record and stops working. Where the token is the only problem, refreshing the existing connection in place keeps the files as they are; removing and re-adding the drive does not.
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.
A client secret expires after the period you chose when you created it. To rotate (replace) a secret without interrupting service:
To fully remove the SharePoint and OneDrive integration:
Important: Removing the integration disconnects everyone from their external drives. The files themselves stay in SharePoint and OneDrive. Axero also keeps its own record of each synced file rather than deleting it. What goes away is the access mapping and the search index entry. Anyone who reconnects the same drive later gets a fresh set of file records, not the originals. Tell people before you proceed.
Next Steps: Now that the administrator setup is complete, share the user setup instructions with your team: SharePoint and OneDrive Sync User Setup
If you hit an issue not covered here, or a step could be clearer, let us know through a Support Case so we can help you and improve this guide.
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.