I am trying to set the following SharePoint Online site properties to $false, but keep receiving "Access Denied"
AllowCreateDeclarativeWorkflow
AllowSaveDeclarativeWorkflowAsTemplate
AllowSavePublishDeclarativeWorkflow
I tried PNP
$Site = Get-PnPSite
$Site.AllowCreateDeclarativeWorkflow = $false
$Site.Context.ExecuteQuery()
and CSOM
I am running with AppId and Secret with full control permissions over entire tenant. I also tried using credentials of site collection administrator.
Custom scripts are disabled on tenant level.
Could reproduce on multiple sites and another tenant.
Would appreciate any hints.