Hi
I tried PowerShell but no go. Below what I came up with.
PS C:\WINDOWS\System32> Get-SPOSite -Identity $SiteURL -Detailed | select DenyAddAndCustomizePages
DenyAddAndCustomizePages
------------------------
Enabled
PS C:\WINDOWS\System32> Set-SPOSite $SiteURL -DenyAddAndCustomizePages $False
Set-SPOSite : https://company.sharepoint.com/sites/group.team is a Groups site collection. The valid parameters for thi
s type of site collection are '-Identity', '-AllowSelfServiceUpgrade', '-DefaultLinkPermission', '-DefaultSharingLinkTy
pe', '-DenyAddAndCustomizePages', '-DisableCompanyWideSharingLinks', '-DisableSharingForNonOwners', '-LockState', '-Own
er', '-ResourceQuota', '-ResourceQuotaWarningLevel', '-SandboxedCodeActivationCapability', '-SharingCapability', '-Show
PeoplePickerSuggestionsForGuestUsers', '-SocialBarOnSitePagesDisabled', '-StorageQuota', '-StorageQuotaReset', and '-St
orageQuotaWarningLevel'.
At line:1 char:1
+ Set-SPOSite $SiteURL -DenyAddAndCustomizePages $False
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Set-SPOSite], ServerException
+ FullyQualifiedErrorId : Microsoft.SharePoint.Client.ServerException,Microsoft.Online.SharePoint.PowerShell.SetSi
te
PS C:\WINDOWS\System32> Set-SPOSite $SiteURL -DenyAddAndCustomizePages 0
Set-SPOSite : https://company.sharepoint.com/sites/group.team is a Groups site collection. The valid parameters for thi
s type of site collection are '-Identity', '-AllowSelfServiceUpgrade', '-DefaultLinkPermission', '-DefaultSharingLinkTy
pe', '-DenyAddAndCustomizePages', '-DisableCompanyWideSharingLinks', '-DisableSharingForNonOwners', '-LockState', '-Own
er', '-ResourceQuota', '-ResourceQuotaWarningLevel', '-SandboxedCodeActivationCapability', '-SharingCapability', '-Show
PeoplePickerSuggestionsForGuestUsers', '-SocialBarOnSitePagesDisabled', '-StorageQuota', '-StorageQuotaReset', and '-St
orageQuotaWarningLevel'.
At line:1 char:1
+ Set-SPOSite $SiteURL -DenyAddAndCustomizePages 0
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Set-SPOSite], ServerException
+ FullyQualifiedErrorId : Microsoft.SharePoint.Client.ServerException,Microsoft.Online.SharePoint.PowerShell.SetSi
te
PS C:\WINDOWS\System32>
----
Also, I checked Sharepoint Admin Center Settings and found that custom scripting should be enabled already. Below screen shot shows the situation what it has been all the time. I haven't changed those settings.