OneDrive Archiving
How to configure automatic archiving of approved documents to OneDrive through the ssm.ro platform.
OneDrive archiving runs daily, outside business hours, for approved documents.
Step 1 — Add a new application in Azure Portal
- Go to Azure Portal — App Registrations
- Create a new registration
- Check Accounts in any organization
- Copy the Redirect URL from Settings > Archiving > OneDrive in the ssm.ro platform and enter it in Azure
- After adding the application, find the Client ID under Overview — save this value
Step 2 — Enable token-based authentication
In the application settings in Azure Portal, enable token-based authentication (ID tokens / Access tokens).
Step 3 — Add a secret and save the value
- Go to Certificates & Secrets > New Client Secret
- Add a secret and save the secret value (not the ID)
- Note the expiration date and update the secret before it expires
Warning: The secret value is required, not its ID.
Step 4 — Configure API permissions
Under API Permissions, add the following permissions:
| Permission | Type | Admin consent |
|---|---|---|
Directory.ReadWrite.All | Application | Yes |
Files.ReadWrite.All | Application | Yes |
offline_access | Delegated | No |
User.Read | Delegated | No |
Grant admin consent for the Application-type permissions.
Step 5 — Obtain the Drive ID to be used
Depending on the type of drive you will use:
- Go to OneDrive > My Files and save the CID value from the URL (e.g.
1DE8...2A7) - For business accounts: obtain the drive ID using Microsoft Graph Explorer — after authenticating, check the my profile and get items in my drive operations
Step 6 — Enter the values in the ssm.ro platform
Go to Settings > Archiving > OneDrive and enter:
- Client ID (from Step 1)
- Secret value (from Step 3)
- Drive ID (from Step 5)
After saving, you will be redirected to Microsoft Azure to confirm access. If the settings are correct, you will be redirected back to the ssm.ro platform, archiving will be activated, and a directory for the configured organization will appear in the Drive. Otherwise, an error message will be displayed.