How to Create and Configure Microsoft OneDrive
To use the ownCloud OneDrive app, you mandatory need consulting first. Contact firstname.lastname@example.org to get access to. When granted, follow this guide to use Microsoft OneDrive as an external storage option in ownCloud.
To create a new application:
Open https://apps.dev.microsoft.com/ in your browser of choice and click Create App.
Under Properties, set the application’s name.
With the application created, you can then add a range of further settings. However, only a few of them are required for use with ownCloud.
Under Application Secrets, click Generate New Password, which generates a password and displays it in a popup window. It is required later during when configuring a mount point.
Copy the password to your preferred password manager, as it is only displayed once.
Under menu:[Platforms], click Add Platform and choose Web in the popup window which appears. Only one redirect URL field is visible at first, so click Add URL to add another one.
With two fields available, add two redirect URLs; one for
settings/admin and one for
settings/personal, as you can see in the
Under "Microsoft Graph Permissions", click "Add" next to "Application Permissions". This opens a popup window where you can choose the required permissions. Add at least the following four:
With those settings added, click "Save", located right at the bottom of the page.
You can add as many OneDrive mount points as you want. To do so:
Add a new storage, selecting "One Drive" for external storage.
Set the credentials of your OneDrive application, and then accept the permissions.
If everything is accepted, the mount points should appear, with a green status icon on the far left-hand side.
To be able to use the occ command
files_onedrive:subscribe, you need
to have the variable
overwrite.cli.url set in
in this example:
'overwrite.cli.url' => 'https://example.org:63984/index.php',
The HTTPS prefix, port, and
/index.php suffix are mandatory.