Connect-SPOService -Url https://sessions586-admin.sharepoint.com/


Set-SPOSite "https://sessions586.sharepoint.com/sites/USAMMasterBondandLicenseTeam" -DenyAddAndCustomizePages 0



Run Powershell as Admin

run commands above

1st command will always be the same

2nd command will be site of actual page inside ""


if it is a shared channel make sure it has channel name as well ex.


Set-SPOsite "https://sessions586.sharepoint.com/sites/TSISharedChannel-CollectionAgencyLicensesInfo"-DenyAddAndCustomizePages 0


if above command is not working disable then enable with following commands

ex:


Connect-SPOService -Url https://sessions586-admin.sharepoint.com


Import-Module Microsoft.Online.SharePoint.PowerShell -DisableNameChecking


 set-sposite -identity "https://sessions586.sharepoint.com/sites/PCPMasterBondandLicense-PCPNCOS-InformationExchange" -DenyAddAndCustomizePages 1


set-sposite -identity "https://sessions586.sharepoint.com/sites/PCPMasterBondandLicense-PCPNCOS-InformationExchange" -DenyAddAndCustomizePages 0


From MSFT:

Resolution/Troubleshooting:

-connected to SharePoint Online PowerShell

-assigned the URL to variables for easy execution

$URL1 = "https://sessions586.sharepoint.com/sites/PCPMasterBondandLicense-PCPNCOS-InformationExchange"

-run the following cmdlet to enable and disable DenyAddAndCustomizePages parameter

set-sposite -identity $URL1 -DenyAddAndCustomizePages 1

set-sposite -identity $URL1 -DenyAddAndCustomizePages 0

-run cmdlet to check if parameter is disabled

get-sposite -identity $URL1 | fl *deny*


To verify, you can go to the channel, then to the list, click on Settings, List Settings, and you will be able to see 'Save list as template' under Permissions and Management(***you will have to add yourself as an Owner in Teams Admin site)-search for team, Click Channels Tab, then Add Owners