Dropsuite- Service Principal Authentication for New and Existing Clients

Created by Yerko Siljeg, Modified on Fri, 27 Nov at 4:36 PM by Yerko Siljeg

Description


This article explains service principal authentication in NinjaOne SaaS Backup.

Service principal authentication in our End-User Portal aims to minimise the potential damage caused by accidental or intentional security breaches. It restricts data access rights to the minimum levels required to perform their tasks. 


This improvement is a simpler process that removes the need for global admin creation and automates the custom role creation.

Please note Service Principal Authentication does not support Groups & Teams' calendar backup or Groups & Teams Mailbox with attachments at this time.


Requirements


  • For users who will authorise the Exchange Online Management App, PowerShell must be enabled
  • An Exchange Online Licence and email backups are required
    • Organisations that back up only SharePoint and Groups are unable to use Service Principal Authentication
  • SPA requires users to authorise the Exchange Online Management App by using a role that has access to required cmdlets in PowerShell
    • Global Admin can be used
    • If Global Admin is not used, a custom role can be created that has access to the required cmdlets
    • The required PowerShell cmdlets are:
      • Enable-OrganizationCustomization
      • Get-RoleGroup
      • New-RoleGroup
      • Get-ManagementRole
      • New-ManagementRole
      • New-ManagementRoleAssignment
      • Get-ServicePrincipal
      • New-ServicePrincipal
      • Get-RoleGroupMember
      • Add-RoleGroupMember

Please note that with SPA, NinjaOne SaaS Backup will still use the Global Admin within the tenant (not the backup admin that is created for the legacy connection method) for the following scenarios. This Global Admin will need to have an Exchange licence in order to properly access these. In the case of public folders, it should also be an owner of the folders.

Backup Module:

  • Public Folder Backup
  • Public Folder Restore

PowerShell Module:

  • Creating a subapp during the initial setup and recreating it if the subapp becomes invalid

The Process

Adding M365 Backup with Service Principal Authentication for New Clients

As a partner, you can instruct your clients on adding M365 backup with Service Principal Authentication by providing them with these steps, or you can perform the task yourself by impersonating the client.

  1. Sign in to the End-User Portal.
  2. Click the "+ Add Backup" button on the Dashboard page.
  3. Click the "Sign in with Microsoft 365" button.
  4. You will see 2 options. Select the second option, "Authorize with Least Privilege Permissions", and input the M365 admin account accordingly.
  5. Scroll down the page and click the "Accept" button.
  6. Once consent is granted, the user will be redirected to the M365 AUTHORIZATION page. There are 2 steps in total:
    • Step 1: Create Backup Application. This creates sub-applications in the user's tenant. It may take a few seconds to complete.
    • Step 2: Device Authorization. Click the available link. The system will redirect you to a new Microsoft window. Copy and paste the code from the portal, then click the "Next" button. Select the correct admin email and click the "Continue" button.
  7. Go back to the End-User Portal and click the "Verify & Continue" button to finish.
  8. Once successful, the system will list all of the M365 accounts in this tenant. Please wait until custom role creation is successfully connected. It may take up to 24 hours. During this time, Public Folder backup and Journaling (for the Archiver plan) are stopped. You can monitor the status on the Account Settings page under the Credentials tab.

Migrating Service Principal Authentication for Existing Clients

As a partner, you can instruct your clients on migrating to Service Principal Authentication by providing them with these steps, or you can perform the task yourself by impersonating the client.

  1. When logged into the portal, you will see a banner. Click the "Learn More" button.
  2. You will be redirected to the Credentials tab under the Account Settings page. Click the "Migrate Now" button.
  3. Click the "Yes, Continue" button on the confirmation popup.
  4. Select the correct organisation's email.
  5. Click the "Continue" button.
  6. Complete the device authorisation process. When the process is completed, you can close the window.
  7. Back in the portal, click the "Verify & Continue" button.
  8. When successful, the system will list all of the M365 accounts in this tenant, with an additional banner indicating that the migration to Service Principal Authentication was successful.
  9. We advise you to remove the previous backup admin email and app ID in the Azure AD (Entra ID) portal.


Please contact support@manageprotect for any questions.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article