question

RaviNalla-5313 avatar image
0 Votes"
RaviNalla-5313 asked JamesTran-MSFT commented

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

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

azure-ad-tenant
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

RaviNalla-5313 avatar image
0 Votes"
RaviNalla-5313 answered JamesTran-MSFT commented

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

Thanks all

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@RaviNalla-5313
Thank you for posting your solution, and I'm glad that you were able to resolve your issue!

0 Votes 0 ·
HaroldH7998 avatar image
0 Votes"
HaroldH7998 answered RaviNalla-5313 edited

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

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

i i tried running that command. but still it throws same error

0 Votes 0 ·