Forum Discussion

Tom Robey's avatar
Tom Robey
Iron Contributor
Jun 06, 2017
Solved

Embed iframe into team site

When pasting the embed code into the embed webpart I receive a message saying I need to add it to HTML Field Security.  However, I'm not able to find that as an option under Site Collection Administration for the specific team site I'm working with.   However, if I go to site settings for our main sharepoint site its there.  I have added the web address as indicated in the error message but it still does not work.   Is there a delay when adding a site like this?   Or is this a Microsoft oversight?  It tried to embed a PowerApp as well and that didn't work, and added PowerApp.com to the HTML field security and that didn't work either.   I have scripting enabled if that makes a difference.  Any assistance would be appreciated.  

  • From another post on here:

     

    Connect to sharepoint online powershell:

    connect-sposervice -url https://yourtenant-admin.sharepoint.com/

    set-sposite https://yourtenant.sharepoint.com/sites/GroupSiteUrl -DenyAddAndCustomizePages $false

     

    Then, navigate directly to the settings page for the group and you will see the 'HTML Field Security' option which you can modify:

    https://yourtenant.sharepoint.com/sites/GroupSiteUrl/_layouts/settings.aspx

     

    You will have to be an owner of the group to be able to see the settings page.

     

2 Replies

  • Luke Hoffman's avatar
    Luke Hoffman
    Iron Contributor

    From another post on here:

     

    Connect to sharepoint online powershell:

    connect-sposervice -url https://yourtenant-admin.sharepoint.com/

    set-sposite https://yourtenant.sharepoint.com/sites/GroupSiteUrl -DenyAddAndCustomizePages $false

     

    Then, navigate directly to the settings page for the group and you will see the 'HTML Field Security' option which you can modify:

    https://yourtenant.sharepoint.com/sites/GroupSiteUrl/_layouts/settings.aspx

     

    You will have to be an owner of the group to be able to see the settings page.

     

    • Tom Robey's avatar
      Tom Robey
      Iron Contributor

      Well I did it.  I followed the PowerShell commands as you suggested and it worked like a charm.  My past experience with PowerShell has not been as successful.  Thank you. 

Resources