I want to enable custom app authentication by disabling the tenant property -DisableCustomAppAuthentication
on SharePoint online
I have tried the below commands but I am getting error parameter not found:
set-spotenant -DisableCustomAppAuthentication $false
Set-PnPTenant -DisableCustomAppAuthentication $false
Error while using PnP PowerShell:
Set-PnPTenant : A parameter cannot be found that matches parameter name 'DisableCustomAppAuthentication'.
At line:1 char:15
+ Set-PnPTenant -DisableCustomAppAuthentication $false
+ CategoryInfo : InvalidArgument: (:) [Set-PnPTenant], ParameterBindingException
+ FullyQualifiedErrorId : NamedParameterNotFound,SharePointPnP.PowerShell.Commands.Admin.SetTenant
Error while using SharePoint PowerShell:
Set-SPOTenant : A parameter cannot be found that matches parameter name 'DisableCustomAppAuthentication'.
At line:1 char:15 + set-spotenant -DisableCustomAppAuthentication $false
+ CategoryInfo : InvalidArgument: (:) [Set-SPOTenant], ParameterBindingException
+ FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.Online.SharePoint.PowerShell.SetTenant