Cyberduck Mountain Duck CLI

Version 48 (modified by jmalek, on Dec 11, 2020 at 11:06:26 AM) (diff)


Cyberduck Help / Howto / Microsoft OneDrive

Support for Microsoft OneDrive. Connect to

  • OneDrive
  • SharePoint Online


Microsoft Graph, OneDrive, and SharePoint support using a standard OAuth2 authorization flow.

OneDrive uses OAuth 2 for authentication with When opening a connection, a web browser window is opened to grant access to OneDrive for Cyberduck.

Copy the authorization code into the login prompt in Cyberduck to complete authentication. Subsequent connections will not require authorization, unless the refresh token itself is expired due to inactivity.

Multiple Accounts

You can connect to multiple accounts at the same time. Create a new bookmark for every account and run through the OAuth flow. Make sure to log out in your browser prior setting up a new bookmark to make sure the new bookmark is linked to a newly authenticated account.

OAuth Reset

If you have accidentally logged in with the wrong OneDrive Account or want to change the login of the OneDrive bookmark you can reset the OAuth token by deleting the entries related to https://Microsoft OneDrive (user) out of the Windows Credential Manager or on macOS out of Keychain.


All authentication codes expire after 90 days. If you get the error message Forbidden. The caller doesn't have permission to perform the action. [...]due to this known issue remove all entries that are related to Microsoft OneDrive and from Keychain or Windows credential manager. After that, you'll be prompted to reauthenticate.


This connection profile is bundled by default and connects to the endpoint Login with your personal or business account to when prompted to grant access to Cyberduck.

SharePoint Online

Refer to Microsoft Sharepoint SharePoint Online.

Which protocol to choose?

Allows access to Remarks Bundled by default
Microsoft OneDrive Your Drive, and shared files Works with your personal and business OneDrive Yes
Microsoft SharePoint Online The default sites document libraries and accessible group document libraries Yes
Microsoft SharePoint Document Library The default sites document libraries Does not allow access to groups No

Office 365 Deutschland

Requires 6.7 or later

  • Download the Microsoft Office 365 Deutschland OneDrive profile
  • Use the Microsoft Office 365 Deutschland OneDrive profile and login with your * account to to connect to your OneDrive

Office 365 Deutschland Limitations

  • SharePoint access for Office 365 does not work.

Cyberduck CLI

You can list the root contents of your Dropbox with Cyberduck CLI using

duck --list onedrive:/

Refer to the Cyberduck CLI documentation for more operations. For subsequent invocations make sure to include the --username parameter and set it to the email address registered with Google to allow the lookup of previously saved OAuth tokens.

You can search recursively for files fast without browsing folders first.

Create a shared link to make files available publicly. Choose File → Share….

Administrator Consent Required

Depending on the setup of your AAD you may need to perform several steps in order for you to be able to access your OneDrive. Please get in contact with your domain administrator for following steps.

Manually adding Cyberduck

Copy this link, and send it to your domain administrator, this will add Cyberduck to the domain and all users are allowed to access Cyberduck in the future.

Automatically allow users to add Apps to the domain

If applicable and trusted you may set Users can consent to apps accessing company data on their behalf to Yes at the AAD Portal. This will allow users in the future to add apps without Admin-consent.

Admin consent requests (Preview)

There is a preview method of review application consent through the AAD Portal. Please enable Users can request admin consent to apps they are unable to consent to to Yes in the Enterprise applications - User settings. The domain administrator may now review all consents centrally at Admin consent requests (Preview)


There are some limitations that you should keep in mind while working with.

  • No interoperability with Office 365 for
    • China
    • US Government

(other services may apply as well)

Attachments (3)

Download all attachments as: .zip