Application Registration for Data & More Compliance Solution (DMCS)

The Application Permission includes authentication for Graph, Exchange Online and SharePoint Online / OneDrive.

Quick Overview of API Permissions

Step-by-Step Guide


Quick Overview of API Permissions using Graph Application Permissions

 

Rights for PoC

    • User.Read (AD)
    • User.Read.All (AD)
    • Directory.Read.All (AD)
    • Mail.Read (Exchange Online)
    • Mail.Send (Sends Reports)

Return URL for PoC
 https://signup.dataandmore.com/api/authorize_redirect

_____________________________________________

Rights for Production

    • Mail.ReadWrite (Exchange Online)
    • MailboxSettings.ReadWrite (Outlook Categories) * Optional
    • Contacts.Read (Extract Known Persons) * Optional
    • Files.ReadWrite.All (OneDrive)
    • Sites.FullControl.All (SharePoint)
    • Sites.ReadWrite.All (SharePoint)
    • InformationProtectionPolicy.Read.All (CoPilot Protection)
  • Redirect URL  Azure AD Authentication
    We need to add a 'Redirect URL' and the platform have to be 'Web' . 

    BlZ4O
    • "the primary server domain" + "/api/auth/ad/login/authorized"
    • So if your server domain is: https://gdpr.dataandmore.com then redirect URL should be:

      https://gdpr.dataandmore.com/api/auth/ad/login/authorized

    • And a universal return URL for PoC
      https://signup.dataandmore.com/api/authorize_redirect

Office 365 Exchange Online Application Permission

This application permission is based on EWS and is only in-use if OnlineArchive are to be scanned.

    • full_access_as_app



 

Send the applications id (client id) to support@dataandmore.com

Send the secret value  (NOT  secret id) directly to your contact in Data & More

Step-by-Step Guide

 

1. Application Registration

Go to portal.azure.com and log in with the global admin of your 365 domain. Search and select App Registration

Screenshot 2022-10-19 at 14.33.35

 

You’ll see a list of all your registered applications and a few options at the top. Select New registration.

Screenshot 2022-10-19 at 14.34.57

 

When creating new app registration, you’ll need to name it, choose who can use it and enter a redirect URL. 

  • Redirect URL - "the primary server domain" + "/api/auth/ad/login/authorized"

So if your server domain is: https://gdpr.dataandmore.com the redirect URL should be:

https://gdpr.dataandmore.com/api/auth/ad/login/authorized

Click on the Register button on the bottom left.

Screenshot 2022-10-19 at 14.42.58

 

When app registration is created, you’ll see the Overview page with all the details such as Name, Client ID, Tenant ID, Object ID and so on. 

 

2. API permissions

Go to API Permissions which can be found on the left side.

Screenshot 2022-10-19 at 15.15.00

 

Click on Add a permission.

Screenshot 2022-10-19 at 15.17.00

 

Click on Microsoft Graph and select Application permissions

Screenshot 2022-10-19 at 15.19.50

Add the following permissions:

  • User.Read (AD)
  • User.Read.All (AD)
  • Directory.Read.All (AD)
  • Mail.ReadWrite (Exchange Online)
  • Mail.Send (Sends Reports)
  • Contacts.Read (Extract Known Persons)
  • MailboxSettings.ReadWrite (Outlook Categories)
  • Files.ReadWrite.All (OneDrive)
  • Sites.FullControl.All (SharePoint)
  • Sites.ReadWrite.All (SharePoint)


Click on Add permissions.

 

After adding Microsoft Graph API permission, you need to add one more - Office 365 Exchange Online. 

To do that, again click on Add a permission, but this time go to APIs my organization uses tab and search for Office 365 Exchange Online.

Screenshot 2022-10-19 at 15.34.28

 

Click on Application permissions, select full_access_as_app and click on Add permissions button.

Screenshot 2022-10-19 at 15.38.24

 

The last step is to Grant admin consent for the added permissions. To do that, simply click on Grant admin consent on the top of the table and confirm the action in the pop up window.

Screenshot 2022-10-19 at 15.42.57

 

If you successfully did that, your table should look like this:

Screenshot 2022-10-19 at 15.44.23

3. Keys

If you go to the Overview page of your app registration, you'll see all the details such as Name, Client ID, Tenant ID, Object ID and so on. 

You need to provide Data & More with: Client ID, Tenant ID and Secret Value. 

 

Client ID and Tenant ID can be found on the Overview page.

Screenshot 2022-10-19 at 14.49.10

 

To get Secret Value, you need to go to Certificates & secrets on the left side and click on New client secret.

Screenshot 2022-10-19 at 15.03.11

Screenshot 2022-10-19 at 15.05.55

Add a client secret description and when will it expire. After that, click on Add.

 

When a client secret is created, you should see it on the list with all the details. Secret value can be found here and you need to copy it while you are on this page.

Screenshot 2022-10-19 at 15.12.10

 

IMPORTANT: Client secret values cannot be viewed, except for immediately after creation. Be sure to save the secret when created before leaving the page.