Forum Discussion
Sharepoint 2010 Workflow error: Access Denied
- Oct 31, 2019
And if this is the first time you've tried a 2010 workflow for a site collection in SPO, you have to make sure the DenyAddAndCustomizePages is turned off. You can tell if you look at your security on the site through the advanced settings, you'll see a 'Deny' section.
Powershell to do that:
# set security so can use 2010 workflows
# have to do this to every site we want to use 2010 workflows o, including all class istes
# also, this is what gives us the content editor web part. We don't have to turn on publishing.
$cred = Get-Credential
Connect-SPOService -Url https://NAMEOFTENANT-admin.sharepoint.com -credential $cred
Set-SPOSite -Identity https://NAMEOFTENANT.sharepoint.com/sites/NAMEOFSITE -DenyAddAndCustomizePages $false
# double check the settings is correct
$site = Get-SPOSite -Identity https://NAMEOFTENANT.sharepoint.com/sites/NAMEOFSITE
$site.DenyAddAndCustomizePages
Disconnect-SPOService
A couple thoughts. Have you installed the SPD Service Pack?
Take a look at this: https://social.msdn.microsoft.com/Forums/lync/en-US/97df03dd-bcdc-4bd7-a5b6-770a04aaf5ff/receiving-server-error-access-denied-when-i-publish-2010-platform-workflow-help?forum=sharepointcustomization
- CCLDanielNov 17, 2019Copper Contributor
We are still having this issue.
We have tried the powershell stuff and it hasn't resolved.
This is only on one Sharepoint site in Office 365. All other site collections we can use this on fine.
- CCLDanielNov 17, 2019Copper ContributorFound a resolution;
$adminUPN="[REPLACE]"
$orgName="[REPLACE]"
$userCredential = Get-Credential -UserName $adminUPN -Message "Type the password."
Connect-SPOService -Url https://$orgName-admin.sharepoint.com -Credential $userCredential
Set-SPOsite https://cclcvic.sharepoint.com/sites/Intranet -DenyAddAndCustomizePages 0