Skip to main content
Skip table of contents

SharePoint Online Setup

The connection between MyQ X and SharePoint Online is configured in MyQ, Settings, Connections.

Click Add and select SharePoint Online.

In the pop-up window, add a Title for your connection, and then you can either select:

  • Create automatically.

  • Set up manually.

Create Automatically

This mode allows the administrator to have MyQ create the Enterprise Application (Service Principal) on their tenant and grant this application permissions to access SharePoint Online folders and files.

image-20240430-134021.png

Considerations

If you are hesitant to grant even temporary administrative access for the creation of a client secret, the automatic connection procedure to SharePoint Online will not be available for use. In such cases, it's advisable to manually create an application within your organization's Azure environment and configure the connection to MyQ X by yourself (mode Set up manually). This approach ensures that you maintain full control over the application's permissions and the security aspects of the connection, aligning with your organization's specific security policies and compliance requirements.

Prerequisites

  • For creating the service principal on the customer’s tenant, Application Administrator or Cloud Application Administrator roles are required.

  • For granting admin consent to the service principal, the Global Administrator role is required.

  • To finish all steps in the automatic setup, the Global Administrator role is required.

Steps to automatically set up the SharePoint Online Application

  1. The administrator signs in with their Azure Administrator account. MyQ X SharePoint Online Connector service principal is created on the tenant.

  2. The administrator grants the delegated permission to manage Azure applications.

    1. Permissions requested in this step: Application.ReadWrite.All (to create client secret) Directory.Read.All (to read default domain name in connected tenant)

      image-20240430-134140.png
  3. The administrator grants the application permissions to read and write files and grants admin consent (individual users do not have to consent subsequently)

    • Permissions requested in this step: Sites.ReadWrite.All

      image-20240430-134211.png

  4. Once the process is completed, the SharePoint Online connector is saved, and the connection details are securely saved in MyQ.

Re-authorizing the SharePoint Online Connection

The automatic connection to SharePoint Online can be changed after it has been created. The Re-authorize option will be available in the context menu by right-clicking on the connection.

image-20240430-134320.png

The user will be shown the same dialogue as when the connection was created. The user can repeat all the steps to create a new secret for the existing SharePoint Online connection. Or they can perform step 3 - Administrator’s consent, if it was not completed when the connection was created for any reason, for example, due to insufficient rights of the Azure administrator.

Also, the Re-authorize option allows you to change the type of connection created from automatic to manual, and vice versa.

Application management

  • The validity of the Secret is 2 years. Be sure to rotate the key when its expiration is due. You can do this with the Re-authorize option in MyQ.

  • Credentials for service principals are not visible in the Azure portal. They can be managed via PowerShell or Microsoft Graph API.

  • In case you need to revoke the app’s access or currently used Secret, you can simply delete the entire MyQ X SharePoint Online Connector enterprise application in Azure, and create a new one with the Re-authorize option in MyQ.

Additional information

  • If the automatic setup is completed again, it does not create a new instance of the application on the tenant, but the current application is updated (e.g. new secret on the service principal on the tenant created). If the MyQ X SharePoint Online Connector application has been removed from Azure, it is created again.

  • Service principal (enterprise application) is created on the tenant after Step 1 (without necessary permissions which are granted in Step 2). Step 2 can be finished later (by right-clicking the MyQ X SharePoint Online Connector and selecting Re-authorize).

  • To better understand what MyQ is doing in this mode, Microsoft explains this method in their Developer documentation – Understand user and admin consent from the perspective of the application developer

MyQ X users can interact with SharePoint Online files without having individual Microsoft accounts or being synchronized with users from Microsoft Azure AD. The application acts on behalf of the users, based on the permissions assigned to it by the organization's administrator in Azure.

All MyQ X users gain uniform full rights to access files on the SharePoint Online site, regardless of whether they have a Microsoft account within the organization or any individual permissions.

Set Up Manually

It is expected that the administrator has configured the Azure application manually. They can directly provide credentials to their application - Application ID (client ID), Security key (secret key) and Site URL.

In most cases, it’s enough to leave a prefilled Directory (tenant) ID as common. It should contain a specific tenant ID in case of using the 'Application has access to SharePoint Online storage of all sites' option. 

image-20240430-134512.png

Enabling Application-Wide Access

This feature is designed to simplify access to SharePoint Online files, enabling MyQ X users to read and write files hosted on a selected SharePoint Online site without the need for individual Microsoft account logins.

When the option "Application has access to SharePoint Online storage of all sites" is enabled in the connection settings, it grants MyQ X users application-wide access to read and write files on any selected SharePoint Online site. This is achieved by configuring the application in Azure to have the necessary permissions to access SharePoint Online storage across all sites.

To implement this functionality, the application must be registered in Azure Entra ID with the appropriate permissions to access SharePoint Online. The required permission is Sites.ReadWrite.All, which allows the application to read and write files in all site collections without requiring individual user logins. This permission is granted via consent from an administrator in the Azure portal.

Configuration Steps

  1. Register MyQ X as an application in Microsoft Entra ID (Azure).

  2. Assign the Sites.ReadWrite.All permission to the application in Azure AD.

  3. Admin consent is required to enable these permissions for the application.

  4. In MyQ X connection settings, specify the SharePoint Online site by its URL.

  5. Enable the "Application has access to SharePoint Online storage of all sites" option.

With this option enabled, MyQ X users can interact with SharePoint Online files without having individual Microsoft accounts or being synchronized with users from Microsoft Azure AD. The application acts on behalf of the users, based on the permissions assigned to it by the organization's administrator in Azure.
All MyQ X users gain uniform full rights to access files on the SharePoint Online site, regardless of whether they have a Microsoft account within the organization or any individual permissions.

Disabling Application-Wide Access

If the option is disabled, users must individually connect to the SharePoint Online storage through the MyQ X Web UI. They are required to login using a connect link, which necessitates having a Microsoft account within their organization. Upon connecting, an access token for SharePoint Online is stored in MyQ X.

User Token Authentication

When application-wide access is disabled, any action performed on files within the SharePoint Online site is executed under the individual user's account. The user's access token is unique and subject to the specific permissions of that user's Microsoft account. This ensures that file interactions are securely managed and adhere to the organization's access control policies.

Security Considerations

  • When enabling application-wide access, it is crucial to understand the security implications of granting the application extensive permissions to SharePoint Online. Administrators should carefully consider the necessity of these permissions relative to their organizational security policies.

  • Individual user token authentication offers a more granular level of access control, applying the specific permissions of each user's Microsoft account to their interactions with SharePoint Online files.

 

Learn how to use your SharePoint Online as a destination for Easy Scans here.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.