Forum Discussion
Aniket_Nade
Jan 28, 2022Copper Contributor
"Token type is not allowed" error on sharepoint search API
Aim:- To access sharepoint through REST Api Steps taken:- Created site on sharepoint. Registered site as an app using https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbhy...
mmachniak
Sep 02, 2022MCT
marcusj2
Feb 11, 2023Copper Contributor
That solution does not work for me. I get the following error on the last statement:
>Connect-SPOService -Url https://$orgName-admin.sharepoint.com -Credential $userCredential set-spotenant -DisableCustomAppAuthentication $false
Connect-SPOService : A parameter cannot be found that matches parameter name 'DisableCustomAppAuthentication'.
At line:1 char:105
+ ... $userCredential set-spotenant -DisableCustomAppAuthentication $false
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Connect-SPOService], ParameterBindingException
+ FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.Online.SharePoint.PowerShell.ConnectSPOService