Note: You are currently viewing documentation for Moodle 3.9. Up-to-date documentation for the latest stable version of Moodle may be available here: OneDrive repository.

OneDrive repository: Difference between revisions

From MoodleDocs
No edit summary
(info update (MDL-58220))
Line 1: Line 1:
{{Repositories}}
{{Repositories}}


The Microsoft OneDrive repository (''formerly known as Skydrive'') allows you to access your documents from Microsoft OneDrive within Moodle.  
The Microsoft OneDrive repository allows you to access your documents from Microsoft OneDrive within Moodle. As well as adding basic files, the OneDrive repository link allows you to access your OneDrive live directly from the configuration icon.


''Note: This is the regular, free OneDrive account, NOT the OneDrive for Business, which will not work.''
[[File:OD8.png|400px]]


''Note: OneDrive requires that requests are delivered over SSL - this means that the OneDrive repository will not work if your site is not running over HTTPS''
The first time you access the OneDrive repository, you will be prompted to agree to connect. Once you have agreed, you can then log in,view and use your files.
[[File:OD8.png]]


As well as adding basic files, the OneDrive repository link allows you to access your OneDrive live directly from the configuration icon.
Notes:
# This is the regular, free OneDrive account, NOT the OneDrive for Business, which will not work.
# OneDrive requires that requests are delivered over SSL - this means that the OneDrive repository will not work if your site is not running over HTTPS.


The first time you access the OneDrive repository, you will be prompted to agree to connect:
==Enabling the OneDrive repository==


[[File:OD7.png]]
To use the OneDrive repository, an administrator must first create a Microsoft OAuth 2 service.


Once you have agreed, you can then log in,view and use your files.
# Go to 'OAuth 2 services' in Site administration and click the button to create a new Microsoft service.
==Enabling the repository==
# Follow the instructions in [[OAuth 2 Microsoft service]] and obtain a client ID and secret.
*Enable the OneDrive repository from 'Manage repositories' in Site administration.
# Enter the client ID and secret and save changes.
*You must register your Moodle with Microsoft in order to allow Moodle to communicate with Microsoft. Click the link presented on the OneDrive configuration screen.
# Go to 'Manage repositories' in Site administration and enable the OneDrive repository.
*Sign in with your Microsoft account.
# On the OneDrive configuration page, make sure that Microsoft is selected as the OAuth 2 service then save changes.
* Click ‘Add an app:
 
[[File:livesdk.png]]
 
*Fill in the form with a name for your Moodle,  accept the terms and click 'Create application'.
 
[[File:onedriveappreg.png]]
 
*If desired, add an organisation logo and link to your Terms of Service:
 
[[File:onedrivelogoterms.png]]
 
*Click to save or cancel and then click the link 'API settings' .Paste in the redirect URL you are given in ''Site administration > Plugins > Repositories > Microsoft OneDrive''
 
[[File:OD4a.png]]
 
*Click the link App Setttings:
 
[[File:OD6.png]]
 
*You will be shown ‘client ID’ and ‘client secret’. You need to paste these into the boxes in ''Site administration > Plugins > Repositories > Microsoft OneDrive''
 
*Once saved, users will be able to access their OneDrive files from the OneDrive repository.


==Repository capabilities==
==Repository capabilities==
There is just one capability associated with this repository: repository/skydrive:view: [[Capabilities/repository/skydrive:view| View Skydrive]]
There is just one capability associated with this repository: repository/skydrive:view: [[Capabilities/repository/skydrive:view| View Skydrive]]


[[de:Skydrive Repository]]
[[de:Skydrive Repository]]
[[es:Repositorio Skydrive]]
[[es:Repositorio Skydrive]]

Revision as of 15:42, 4 May 2017


The Microsoft OneDrive repository allows you to access your documents from Microsoft OneDrive within Moodle. As well as adding basic files, the OneDrive repository link allows you to access your OneDrive live directly from the configuration icon.

OD8.png

The first time you access the OneDrive repository, you will be prompted to agree to connect. Once you have agreed, you can then log in,view and use your files.

Notes:

  1. This is the regular, free OneDrive account, NOT the OneDrive for Business, which will not work.
  2. OneDrive requires that requests are delivered over SSL - this means that the OneDrive repository will not work if your site is not running over HTTPS.

Enabling the OneDrive repository

To use the OneDrive repository, an administrator must first create a Microsoft OAuth 2 service.

  1. Go to 'OAuth 2 services' in Site administration and click the button to create a new Microsoft service.
  2. Follow the instructions in OAuth 2 Microsoft service and obtain a client ID and secret.
  3. Enter the client ID and secret and save changes.
  4. Go to 'Manage repositories' in Site administration and enable the OneDrive repository.
  5. On the OneDrive configuration page, make sure that Microsoft is selected as the OAuth 2 service then save changes.

Repository capabilities

There is just one capability associated with this repository: repository/skydrive:view: View Skydrive