nextcloud / integration_onedrive

🗔 Integration of Microsoft OneDrive into Nextcloud
GNU Affero General Public License v3.0
32 stars 7 forks source link

What about a tiny manual for simple users? #26

Open njotha opened 2 years ago

njotha commented 2 years ago

I'm an almost standard user (although not absolutely stupid, first contact to computers was in 1969...), neither freak nor expert. I have used owncloud for many years, moved to nextcloud and like it. And, furthermore, I'd really like to integrate my onedrive account, but I'm stuck. So, for users like me a step-by-step "How To" wouldn't just be fine, it would be neccessary. I'm getting error messages (the last one was something like "can't send secret keys from public app" without any hint how to repair the issue. An app which can be successfully installed by experts only doesn' achieve the maximum usability scoring, I'm afraid... :-)

joe-average-user commented 1 year ago

Well, actually you are quite right. I did not manage to get it working either. And I did already write own nextcloud apps. So you cannot say I am clueless. Nevertheless there is obviously no one having done this successfully, at least not findable with google. The only proven data exchange between onedrive and nextcloud I found was a guy in youtube that simply mounted his onedrive and synced it with the nextcloud client afterwards into the cloud. Does anybody know a demo how this should work out?

Apofoo commented 1 year ago

I know it is late, but i was facing the same issue and found the problem. In Client ID you should not put the client ID associated to your secret but the Application ID (Visible in the Overview of your Azure App) In Client Secret, you still put the secret. The client ID is not needed anywhere !

Flybell commented 1 year ago

Apofoo is right. I used the Application ID for Client ID and "value" under Secrets for the Client Secret (instead of the secret ID) and it WORKED.

Another note: I used Web Redirect URIs for the redirect link. The other platforms don't work.

So this is what worked for me at the end:

Step 1: Add "OneDrive Integration" App to Nextcloud Step 2: Go to "administrative settings" -> "connected accounts" and follow the "Azure App registrations page" link to set up an an OAuth application. The Redirect URL link is also listed under this "connected accounts" page. Step 3: Sign in to the Microsoft Azure portal with the intended OneDrive account. Click "new registration". Step 4: Put in whatever Name, specify the type of microsoft account you have (for me, it was personal), and add the Redirect URL provided by Nextcloud (on the "connected accounts" page) to the "Web" platform. Step 5: In the Azure menu, go to API permissions. User.Read should already be there. Adding stuff like "Contacts.Read", "Calendars.Read", "MailboxSettings.Read" is optional. Do it by finding them under "Microsoft Graphs". Step 6: In the Azure menu, go to Certificates & secrets. Create a new client secret. The only parameter that's relevant is the "Value". Copy that one for later use. Step 7: In the Azure menu, go to "Overview" and copy the "Application (client) ID" under display name. Step 8: Go back to Nextcloud and under "connected accounts", copy and paste the Application ID to Client ID and the Value of the client secret to Client secret. Step 9: In Nextcloud, go to "personal settings" -> "data migration". You should see that "Microsoft OneDrive integration" has now appeared. Click "enable navigation link" and connect. A Microsoft log-in pop up page should show up. Consent to the connection. Step 10: Now you can click import and import ALL of your OneDrive files. There's no option, I think, to choose folders.

johnhelt commented 3 months ago

This is interesting: I have succesfully connected my account to onedrive, but I dont see anywhere a way to import files. Only thing I can chose from is shown here: image