1

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
3
  • 1
    Which version of PnP PowerShell are you using? Try using latest version 1.8.0. As per the release notes, this parameter has been added in Oct 2020 release. Nov 2, 2021 at 16:00
  • 1
    Thank you, it worked . I have to uninstall the SharePointPnPPowerShellOnline and install it again. Uninstall-Module -Name SharePointPnPPowerShellOnline -force Install-Module -Name SharePointPnPPowerShellOnline
    – taps bops
    Nov 3, 2021 at 7:47
  • Great, glad it worked for you. I have added my comments as answer below, please Upvote(^) and accept as an Answer as it helped you & it will help others with similar question in future to find the correct answer easily. Nov 3, 2021 at 7:55

1 Answer 1

1

As per the release notes, -DisableCustomAppAuthentication parameter has been added in October 2020 release.

Try using latest version (1.8.0) of PnP PowerShell & it should work for you.

Follow below documentation for more information: PnP PowerShell

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.