The token contains no permissions or permissions can not be understood with ApplicationIdAndSecret authentication on MSO365 activities

NoPermissionsInAccessToken Message: The token contains no permissions, or permissions can not be understood. with ApplicationIdAndSecret authentication on O365 activities.

When using Microsoft Office 365 activities within a Microsoft Office 365 Scope activity, it's mandatory to select an authentication method.

The error: NoPermissionsInAccessToken Message: The token contains no permissions, or permissions can not be understood - appears when there is a miss-match between the authentication method used and the types of API permissions granted to your App in Azure.

If you want to "ApplicationIdAndSecret" as authentication method, make sure that the Azure application has "Application permissions" and not "Delegated permissions".

For more information, please review our documentation on How to set up your Office365 Azure app.