Why do I receive the "Unable to get the access token" error when backing up SharePoint data to Boxafe?


Release date: 2023-01-11

Applicable Products

Boxafe


Root Cause

The “unable to get access token” error may occur because the ACS app-only access token has been disabled in your SharePoint Online account.

Apps using an ACS app-only access token are disabled by default in new Microsoft 365 tenants.


Solution

To grant Boxafe access permission to your SharePoint Online account you must enable the ACS app-only access token. You may need to set up SharePoint Online Management Shell before doing so.

Set up SharePoint Online Management Shell

  1. Download and install SharePoint Online Management Shell from http://www.microsoft.com/en-us/download/details.aspx?id=35588
  2. Open an elevated PowerShell prompt.
  3. Find the version of your SharePoint Online Management Shell by running the following command:
    Get-Module -Name Microsoft.Online.SharePoint.PowerShell -ListAvailable | Select Name,Version
  4. If your SharePoint Online Management Shell version is earlier than 16.0.20912.12000, force install the latest module version by running the following command:
    Install-Module -Force -Name Microsoft.Online.SharePoint.PowerShell
  5. If your execution policy is restricted, you must set it to unrestricted by running the following command:
    Set-ExecutionPolicy -ExecutionPolicy Unrestricted

Enable ACS App-only Access Token

  1. Download and unzip Boxafe_Auth.ps1 (the Boxafe Auth Powershell Script) from https://www.qnap.com/images/faq/no.1149/Boxafe_Auth.zip
  2. Open an elevated PowerShell prompt.
  3. Run Boxafe_Auth.ps1
  4. If a confirmation message appears, press A.
  5. Enter the SharePoint admin site URL. For example: “http://contoso.onmicrosoft.com”
  6. The SharePoint Online login window appears. Sign in with your SharePoint Online account credentials.
    Note

    QNAP does not save your SharePoint Online account credentials.

  7. PowerShell runs the Boxafe Auth PowerShell Script. When finished, press Enter.
  8. Log in to Boxafe.
  9. Follow the Boxafe user guide to Obtain Microsoft 365 Domain Authentication Credentials.

Was this article helpful?

Thank you for your feedback.

Please tell us how this article can be improved:

If you want to provide additional feedback, please include it below.

Válassza ki a specifikációt

      Mutass többet Kevesebb

      Ez a webhely más országokban / régiókban:

      open menu
      back to top