thanks in advance for your time with the below query.
I have a SharePoint Online site and an Office 365 Group.
On the SharePoint Online site I have the CEWP (Content Editor Web Part) which I can add to a page successfully.
However, on the Office 365 Group I can not see it in the web-parts when editing a page.
I've tried enabling feature such as publishing, standard site features, enterprise site features, etc. Custom scripts are already enabled/allowed in the admin settings. I've tried creating sub-sites. But still can't see it appear in the list of web-parts. I've even tried exporting a CEWP from a SharePoint Online site and importing into my Office 365 group, but I recieve the error 'A web part or web form control on this page cannot be displayed or imported. You don't have add and customize pages permissions required to perform this action'. I am an owner of the group.
Is this missing CEWP a known limitation of Office 365 groups?
I had this problem a while back so went through a support call with MS to resolve it.
Turns out that an O365 Group or an O365 Team that was created some time after the Group was created has custom scripting is denied by default,even if it's turned on at the SP Admin settings page
You need to enable it using the following powershell command using the SharePoint online management shell.
Set-SPOsite -DenyAddAndCustomizePages 0 Where is the URL of the site you are enabling scripting.