Skip to main content
Skip table of contents

Configuring Azure Authentication for Microsoft SharePoint Online or Exchange Online for use with Shinydocs Pro

By integrating with Microsoft Azure, the Shinydocs Pro software can operate with Microsoft SharePoint Online and/or Exchange Online — maintaining secure and compliant access to this cloud application with policy-based access controls.

The following document describes how to enable Azure authentication for Microsoft SharePoint Online.

Note that this process does require certificates, which are used by Azure to prove the Shinydocs application’s identity when requesting a token. You need two files, a .cer file with the public key which you upload to Azure, and a .pfx file with the private key that you add to the Shinydocs software.

These files are often provided by an organization’s IT or Network team.

A self-signed certificate can be used but is not advised depending on your organization’s infrastructure and security policies. More information on Azure and Self-Signed Certificates can be found here. https://learn.microsoft.com/en-us/entra/identity-platform/howto-create-self-signed-certificate
For the Microsoft PowerShell script to create a self-signed certificate, please visit https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/security-apponly-azuread

Table of Contents

Register Shinydocs Software with Azure

The first step of the process is to register your Shinydocs software with Azure, so that it can access SharePoint Online or Exchange Online data.

You only need to register one application for Shinydocs software. Permissions to supported repositories can be configured under the one registration.

  • Open Microsoft Azure.

  • In the upper left corner dropdown menu, navigate to Azure Active Directory.

  • From the sidebar menu, select App registrations

  • Select + New registration

  • Enter a name for the application. In this case, we used “Shinydocs Pro” as the application name.

  • Select who, within your organization, can use or access the application. In most cases, the first option (Single tenant) will be selected (see below).

  • The optional Redirect URl is not needed in this case.

  • Select Register to continue.

Permission to Access SharePoint Content

Now that the Shinydocs Application has been registered with Azure, it’s time to apply permissions to access content within SharePoint Online.

  • From the sidebar menu, select API permissions

  • Select + Add a permission

image-20240506-141546.png
  • Add permissions for SharePoint by selecting SharePoint from the list of Microsoft Applications.

  • For the type of permissions, your application requires, select Application permissions

  • Select the required permissions at the site and user levels. At a minimum, the following items should be selected:

    • Under the Sites permissions, select Sites.Read.All to set permissions to read items in all site collections.

    • Under User permissions, select User.Read.All to set permission to read user profiles.

  • Select Add permissions at the bottom of the page.

  • The API permissions should now be updated to include SharePoint.

image-20240506-141455.png
  • Next, select Grant admin consent for [Tenant Name].

ec18f5a5-c20a-498e-833d-353328316d92-20240506-141845.png

  • Select Yes to grant consent for the requested permissions for all accounts in [Directory Name].

  • At the top of the page, there will be a notification that admin consent for the requested permissions was successfully granted.

Permission to access Exchange Online

Now that the Shinydocs Application has been registered with Azure, it’s time to apply permissions to access content within Exchange Online.

  • From the sidebar menu, select API permissions

  • Select + Add a permission

image-20240506-141546.png
  • Add permissions for SharePoint by selecting SharePoint from the list of Microsoft Applications.

image-20240710-184638.png
  • For the type of permissions, your application requires, select Application permissions

image-20240710-184655.png
  • Select the required permissions for reading Exchange users and mail. At a minimum, the following items should be selected:

    • Under the User permissions, select User.Read.All.

    • Under Mail permissions, select Mail.Read.

  • Select Add permissions at the bottom of the page.

  • The API permissions should now be updated to include Graph.

image-20240710-185156.png
  • Next, select Grant admin consent for [Tenant Name].

ec18f5a5-c20a-498e-833d-353328316d92-20240506-141845.png
  • Select Yes to grant consent for the requested permissions for all accounts in [Directory Name].

  • At the top of the page, there will be a notification that admin consent for the requested permissions was successfully granted.

Upload Authentication Certificate to Azure

These steps require a .cer file.

  • From the sidebar menu, select Certificates & secrets

  • Select Certificates

  • Select Upload certificate

    image-20230608-151530.png
  • Select the folder icon to browse for your certificate (.cer). Optionally, add a description to let other administrators know what this certificate is used for.

image-20230608-151912.png
  • Select Add

  • Verify that the certificate was uploaded successfully by confirming the certificate is shown under Certificates

    image-20230608-152201.png
  • In the left-hand menu, open Overview

image-20240117-174046.png
  • Note/save the following information for configuring Shinydocs Pro in later steps.

  • Application (client) ID: ___________________________________________________
  • Directory (tenant) ID: ___________________________________________________

Configure Shinydocs Control Center

SharePoint Online

These steps can be followed once Shinydocs Pro has been installed.
You will need the .pfx file from your certificate.

Moving the .pfx after setting the Certificate file location will cause any related tasks to fail.

If the .pfx file is moved, you will need to update the Certificate file location to the new path.

In Shinydocs Control Center (either in quick-start or + Add source):

image-20240711-145226.png

  1. Select Microsoft SharePoint Online as your new or existing source

  2. Under Type, select Sharepoint Online

  3. Under Tenant URL, enter the root URL of the Sharepoint site (https://acmecorp.sharepoint.com/)

  4. Under Application ID, enter the Application (client) ID previously noted

  5. Under Tenant ID, enter the Directory (tenant) ID previously noted

  6. Under Certificate file location, enter the path of the .pfx file

    1. Do not use double quotes around the path

  7. Under Certificate password, enter the password for the .pfx file. If your .pfx file does not have a password, leave this field blank

  8. Under Site, leave this field blank to crawl all available sites. If you want to crawl a specific site, enter the URL to the site like this:

    CODE
    https://acmecorp.sharepoint.com/sites/ACMEhome
  9. Click Start Analysis

Congratulations! You should now be crawling your organization’s SharePoint content.

Exchange Online

These steps can be followed once Shinydocs Pro has been installed.
You will need the .pfx file from your certificate.

Moving the .pfx after setting the Certificate file location will cause any related tasks to fail.

If the .pfx file is moved, you will need to update the Certificate file location to the new path.

In Shinydocs Control Center (either in quick-start or + Add source):

  1. Select Microsoft Exchange Online

    image-20240710-190320.png

  2. Enter the following information:

    image-20240710-190444.png

    1. Application (client) ID: Provided by Azure on app registration
      example: 26429906-0457-8031-NmQR-Y9T97oqzNA9H

    2. (directory) Tenant ID: Provided by Azure on app registration
      example: 03ueq69e-2069-7863-nxfq-vzio2wvxkl19

    3. Certificate file location: Full file path to the PFX certificate file (don’t use double-quotes)
      example: C:\Program Files\Shinydocs Professional\Azure\acme.pfx

    4. Certificate password (optional): If you chose to use a password for your certificate, enter it here

  3. Click Next

  4. Enter the mailbox address you want to crawl, if you want to crawl all mailboxes, leave the field blank.

  5. Click Start Analysis

Congratulations! You should now be crawling your organization’s Exchange content.

JavaScript errors detected

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

If this problem persists, please contact our support.