#1 Global Leader in Data Protection & Ransomware Recovery

Warning: "User does not have a valid Microsoft 365 license with SharePoint plan enabled."

KB ID: 3076
Product: Veeam Backup for Microsoft 365
Version: any
Published: 2019-12-26
Last Modified: 2022-09-16
mailbox
Get weekly article updates
By subscribing, you are agreeing to have your personal information managed in accordance with the terms of Veeam's Privacy Notice.

Cheers for trusting us with the spot in your mailbox!

Now you’re less likely to miss what’s been brewing in our knowledge base with this weekly digest

error icon

Oops! Something went wrong.

Please try again later.

Challenge

Microsoft OneDrive for Business or Microsoft SharePoint backups may not be backed up, resulting in a warning:

User does not have a valid Microsoft 365 license with SharePoint plan enabled.

Solution

Note: This script is provided as a courtesy for Gathering Plan IDs from MSOnline. Please be aware that Microsoft may alter the commands and parameters in the future, which may cause the script to function incorrectly. There is no support for this script; should it fail, we ask you to contact Microsoft support. This script may be updated to reflect the Microsoft 365 Powershell Environment changes.

To resolve this issue, add missing Plans IDs to the list according to the following steps.

 

Part 1: Retrieve The Organization's Microsoft 365 Plan IDs

Plan ID retreival can be accomplished using the ‘MSOnline’ AzureAD module and the following PowerShell commands.

  1. Install prerequisite modules using the following commands.
install-module AzureAD
install-module AzureADPreview
install-module MSOnline
If an error about installing the NuGet provider occurs when running the above Install-Module commands, run the following command to force PowerShell to connect using TLS 1.2
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
  1. Retrieve the list of Exchange Online service plans IDs using the following command:
(get-msolaccountsku).servicestatus.serviceplan | where {$_.ServiceType -match "Exchange"} | ft ServiceName,ServicePlanId
  1. Retrieve the list of SharePoint Online service plans IDs using the following command:
(get-msolaccountsku).servicestatus.serviceplan | where {$_.ServiceType -match "SharePoint"} | ft ServiceName,ServicePlanId
Part 2: Update Configuration Files
  1. Ensure that there are no backup jobs or restore sessions running.
  2. Stop the Veeam.Archiver.Service and Veeam.Archiver.Proxy services
  3. Navigate to C:\ProgramData\Veeam\Backup365 directory on the Veeam Backup for Microsoft 365 server
  4. Create a backup copy of Config.xml and Proxy.xml
  5. Open both Config.xml and Proxy.xml in Notepad (or Notepad++)
  6. Using the Plan IDs gathered in Part 1, add the following lines between the <Archiver> tags in each of the XML files
    (Example of what this should look like below)
    <Options>
    <O365Plans AdditionalExchangePlans="your-Exchange-plans-IDs" AdditionalSharePointPlans="your-SharePoint-plans-IDs" />
    </Options>
    
    If you do not have any SharePoint plans, omit the AdditionalSharePointPlans section.

    NOTE: The plans must be entered as shown in the example. The GUIDs are entered in Comma-Separated Value within the Quotation around each key value in the <O365Plans line.
img
Example XML
  1. Start the Veeam.Archiver.Service and the Veeam.Archiver.Proxy services.
  2. Open the Add organization wizard and retry the procedure.
To submit feedback regarding this article, please click this link: Send Article Feedback
To report a typo on this page, highlight the typo with your mouse and press CTRL + Enter.

Spelling error in text

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.
Thank you!

Thank you!

Your feedback has been received and will be reviewed.

Oops! Something went wrong.

Please try again later.

You have selected too large block!

Please try select less.

KB Feedback/Suggestion

This form is only for KB Feedback/Suggestions, if you need help with the software open a support case

By submitting, you are agreeing to have your personal information managed in accordance with the terms of Veeam's Privacy Notice.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.
Verify your email to continue your product download
We've sent a verification code to:
  • Incorrect verification code. Please try again.
An email with a verification code was just sent to
Didn't receive the code? Click to resend in sec
Didn't receive the code? Click to resend
Thank you!

Thank you!

Your feedback has been received and will be reviewed.

error icon

Oops! Something went wrong.

Please try again later.