We have the following error trying to authorize Storeware to our microsoft 365 sharepoint admin
Set-SPOTenant -DisableCustomAppAuthentication $false

Set-SPOTenant : Attempted to perform an unauthorized operation.

In riga:1 car:1

  • Set-SPOTenant -DisableCustomAppAuthentication $false

  • 
      + CategoryInfo          : NotSpecified: (:) [Set-SPOTenant], ServerUnauthorizedAccess*xception
    
      + FullyQualifiedErrorId : Microsoft.SharePoint.Client.ServerUnauthorizedAccess*xception,Microsoft.Online.SharePoint.PowerShell.SetTenant