Skip to content

SharePoint / OneDrive

frentix customers

For frentix customers, their customer advisor at frentix takes care of the activation.

With the integration, users get files from SharePoint and OneDrive into OpenOlat and, depending on the configuration, store files from OpenOlat there. SharePoint and OneDrive appear as buttons in the dialog "Add files", for example in folders in the File Hub, in the Media Center, in projects and in comments, and when copying a file from OpenOlat. The prerequisite is that your organisation has the required licenses from Microsoft.

SharePoint

The login via "Microsoft Azure AD" (single sign-on, SSO), Microsoft Teams and SharePoint use the same app at Microsoft: the app that you register for the cloud login "Microsoft Azure Active Directory", see Cloud login: Microsoft Azure Active Directory.

Requirements

The prerequisite for SharePoint is the login via "Microsoft Azure AD": OpenOlat accesses the files with the Microsoft account of the logged-in person. SharePoint and OneDrive therefore only appear for persons who have logged in via "Microsoft Azure AD". Microsoft has renamed the service Azure Active Directory to Microsoft Entra ID. For SharePoint, you only add the corresponding permissions in the same app.

Tip

On this occasion, you can also switch on "Office for the web", with which persons view and edit Word, Excel and PowerPoint files directly in the browser. The app at Microsoft needs no change for this. You switch it on in the system administration under Administration > External tools > Document editors, tab "Office for the web", see External tools: Document editors.

Configuration sequence

  1. Register OpenOlat at Microsoft as an app, see Cloud login: Microsoft Azure Active Directory.
  2. At Microsoft, add the permissions for the login and for SharePoint in the app. If you use the module Microsoft Teams and its function "Meeting recording", the permissions for Teams are added, see Microsoft Teams module: Prerequisites.
  3. Create the client secret for OpenOlat at Microsoft, in OpenOlat the field for it is called "Client secret", see Cloud login: Create the client secret at Microsoft.
  4. In OpenOlat, add "Microsoft Azure Active Directory" in the cloud login and enter "Client ID" and "Client secret". You find the cloud login in the system administration under Administration > Login > Cloud login.
  5. Log in to OpenOlat yourself via "Microsoft Azure AD". The search for sites in the next step runs with this account.
  6. Switch on the module "Microsoft SharePoint / OneDrive" in OpenOlat and enter the sites that persons are to see, see Configuration of Microsoft SharePoint integration.

Configuration of Microsoft SharePoint integration

In the configuration, you define who uses SharePoint and OneDrive in OpenOlat and which sites and files appear. You find it in the system administration under:
Administration > External tools > Microsoft SharePoint / OneDrive

The fields appear step by step. If the module is switched on, "SharePoint", "OneDrive" and "List of excluded labels" appear. If "SharePoint" is switched on as well, "Upload", "Enable SharePoint for…", "List of allowed sites and drives" and "List of excluded sites and drives" appear. All changes take effect only when you click "Save".

Module, SharePoint, Upload and OneDrive highlighted, below them the role selection and the lists of sites and drives: here you switch on the module and SharePoint and OneDrive individually

Module "Microsoft SharePoint / OneDrive"

Switches the connection to Microsoft on or off for the whole instance. If the module is switched off, OpenOlat shows neither the button "SharePoint" nor the button "OneDrive", and the other fields are hidden. If you save with the module switched off, OpenOlat also saves "SharePoint", "Upload" and "OneDrive" as switched off. After switching the module on again, you therefore switch these fields on again. The lists of sites and of exclusions are kept.

SharePoint

Shows the button "SharePoint" in the dialog "Add files". It is visible to persons whose role is checked under "Enable SharePoint for…" and who have logged in via "Microsoft Azure AD". The login of the current session counts. Under "SharePoint", the sites and document libraries from the "List of allowed sites and drives" appear.

Upload

With the checkbox "Allow upload of files in SharePoint", OpenOlat also offers SharePoint as a target when a person copies a file from OpenOlat, for example in a folder with "Copy to...". Without the checkmark, SharePoint serves as a source in the dialog "Add files". Whether saving to a site works depends on the permission of the person at Microsoft. OpenOlat does not know this permission.

OneDrive

Shows the button "OneDrive" with the personal OneDrive of the person. It is visible to all persons who have logged in via "Microsoft Azure AD". They get files from OneDrive and store files there, independently of the field "Upload".

Enable SharePoint for…

Defines which roles use SharePoint: "System administrator", "Administrator", "Learning resource manager", "Author" and "User". One of the checked roles is enough. By default, "Administrator", "Learning resource manager" and "Author" are checked. What counts are the roles of the person in OpenOlat, not their role in a course. If you check "Author", for example, and leave "User" unchecked, authors use SharePoint, while participants with the role "User" alone do not. A person with both roles uses SharePoint, because one checked role is enough. The selection applies to SharePoint; OneDrive is open to all logged-in persons.

List of allowed sites and drives

Defines which content persons see under "SharePoint". A site (at Microsoft "SharePoint site") contains one or more document libraries. A drive is such a document library. If a site is in the list without a drive, all its document libraries appear. If individual drives of a site are in the list, only these appear. Content appears under "SharePoint" only when the list has at least one entry. You add new entries with the button "Add sites or drives". With "Remove" and a confirmation, you take a site or a drive out of the list again.

Add sites or drives

The button "Add sites or drives" opens the dialog "Search sites and drives". Enter a search term, for example the name of the site. The sites found appear as a tree, with their document libraries below each site. Select the sites or document libraries you want and click "Add sites or drives" in the dialog. Entries get into the list only via this dialog.

A selected site brings all its document libraries, a selected document library only itself. If both a site and individual drives of this site are in the list, only these drives appear.

The search runs with the Microsoft account you are logged in with. Therefore log in via "Microsoft Azure AD" beforehand: If you are logged in with user name and password, log out and log in again on the login page via "Microsoft Azure AD". Otherwise OpenOlat shows the warning "You need to log in with Microsoft Azure to search through SharePoint's sites and drives." instead of the dialog. If the search fails at Microsoft, OpenOlat reports "SharePoint cannot process the search request."

List of excluded sites and drives

Hides document libraries of the allowed sites by their name. Enter one name per line. In all allowed sites, OpenOlat hides every document library whose name matches an entry exactly. Upper and lower case do not matter. If several sites have a document library with the same name, it therefore disappears everywhere. If the exclusion is meant for one site only, add only the drives you want of this site to the "List of allowed sites and drives" instead.

List of excluded labels

Keeps confidential documents out of OpenOlat. Enter the displayed name of one Microsoft sensitivity label per line, for example "Highly Confidential". In SharePoint and OneDrive, OpenOlat hides files and folders that carry a sensitivity label with this name at Microsoft, provided the label applies protection settings, such as encryption.


OneDrive

You set up OneDrive in the same way as SharePoint: with the same app at Microsoft and the same login via "Microsoft Azure AD". In the module "Microsoft SharePoint / OneDrive", you switch on "OneDrive" for this, see OneDrive.

Under "OneDrive", every person sees their own OneDrive. It is open to all persons who have logged in via "Microsoft Azure AD", without role selection and without a list of sites. They store files there independently of the field "Upload". The "List of excluded labels" also applies to OneDrive, see List of excluded labels.

Further information

Mentioned on this page
Cloud login >
External Tools: Overview >
Microsoft Teams module >
Microsoft: Learn about sensitivity labels >

Further reading
User tools: File Hub >
User tools: Media Center >

To the top of the page ^