Share via

Disable SharePoint Online Declarative Workflows

Ana 141 Reputation points
2021-05-04T14:59:12.797+00:00

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.

Microsoft 365 and Office | SharePoint | For business | Windows
0 comments No comments

Answer accepted by question author

JoyZ 18,131 Reputation points
2021-05-05T06:21:58.047+00:00

@Ana ,

Same result with you, workflow has been deprecated in SharePoint online, not necessary to disable it for yourself, for more information ,please refer to https://support.microsoft.com/en-us/office/sharepoint-2010-workflow-retirement-1ca3fff8-9985-410a-85aa-8120f626965f


If an Answer is helpful, please click "Accept Answer" and upvote it.

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

1 additional answer

Sort by: Most helpful
  1. trevorseward 11,711 Reputation points
    2021-05-04T17:23:54.1+00:00

    These settings manipulate SharePoint 2010 workflow availability which has already been removed from SPO, i.e. the properties won't do anything.

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.