Share via

SPO Executequery() throws reason="Token type is not allowed.";category="invalid_request" while reading site info

Ravi Nalla 126 Reputation points
2021-08-11T03:24:12.657+00:00

i am getting below error when i try to read site information using sharepoint App .

reason="Token type is not allowed.";category="invalid_request"

i given all the permissions for App. After searching google many suggested to run "set-spotenant -DisableCustomAppAuthentication $false"

But when i run this command in spo admin powershell i am getting below error

"Set-SPOTenant : A parameter cannot be found that matches parameter name 'DisableCustomAppAuthentication'."

Anyone knows solution for this error?

thanks in advance

Microsoft Security | Microsoft Entra | Microsoft Entra ID
0 comments No comments

Answer accepted by question author

Ravi Nalla 126 Reputation points
2021-08-12T05:15:54.713+00:00

After uninstalling Microsoft.Online.SharePoint.PowerShell completely and reinstalling resolved my problem.

Thanks all

Was this answer helpful?


1 additional answer

Sort by: Most helpful
  1. HaroldH 1 Reputation point
    2021-08-11T07:48:08.927+00:00

    Maybe the PowerShell module needs to be updated:
    Update-Module -Name Microsoft.Online.SharePoint.PowerShell -Force

    See also:
    https://helpcenter.elearningforce.com/hc/en-us/articles/360013814357-The-issue-with-creating-a-Course-Catalog-on-a-new-Tenant

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.