web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Unable to embed PowerA...
Power Apps
Answered

Unable to embed PowerApp iFrame onto Modern Communication Site

(0) ShareShare
ReportReport
Posted on by 4

On a newly created Modern Communication Site we are unable to embed an iFrame and Powerapp by following the following recommendation

 

https://powerapps.microsoft.com/en-us/blog/embed-powerapps-on-sharepoint-pages/

 

The following message is displayed:

Embedding content from this website isn't allowed, but your admin can change this setting. They will need to add 'web.powerapps.com' to the list of sites that are allowed.

 

Have discussed with Microsoft Sharepoint Support and they have checked custom scripts are enabled at collection level and also attempted to run Powershell Command :

 

Set-SPOSite -Identity [ modern communication site URL]  -DenyAddAndCustomizePages $false

This results in the following error:

Set-SPOSite : SPOTenantSiteCollectionProvider::SetSiteProperties - Site
https://springwellcommunityschool.sharepoint.com/sites/HR-Payroll not found in Grid, but TAPS_Sites_UseSharePoint
flight in ONReverting to GM-based set-sposite (old) behavior for now
At line:1 char:1
+ Set-SPOSite -Identity https://spr--------------------<URL Here but removed>
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Set-SPOSite], ServerException
+ FullyQualifiedErrorId : Microsoft.SharePoint.Client.ServerException,Microsoft.Online.SharePoint.PowerShell.SetSi
te

 

 

Please advise

 

Categories:
  • StevenMoore Profile Picture
    92 on at





    I may be off the mark here, just did this on Friday. Site settings\Go to top level site settings\HTML field security\

    I added the web.powerapps.com to the list and everything worked.

     

    Some screen snips included. 

    P1.jpegP2.jpegP3.jpegP4.jpeg

     

  • WayneKilner Profile Picture
    4 on at

    Thanks for this. We've confirmed your suggestions are all on at the site level but the HTML security option only appears on old classic pages, not on the new 'Communication Sites'

  • Verified answer
    v-micsh-msft Profile Picture
    Microsoft Employee on at

    Hi @WayneKilner,

     

    What is your current situation?

    If issue sitll insists, then could you please share more information about how you created your Community site?

    Which method described in the article below you have followed (create a site collection, or a subsite)?

    Create a community

    If you created a community subsite, then here you need to run the Set-SPOSite command with the top site, 

    if you created a new site collection, the Set-SPOSite command should work.

     

    Please take a try with the steps (for a site collection) below:

    1. First install SharePoint Online Management Shell,

    2. Open SharePoint Online Management Shell in Admin rights, then Type the following commands:

     

    $o365Credentials = Get-Credential -UserName "user@company.onmicrosoft.com" -Message "YourPassword"

     

    press enter,

         This step would pop out an authentication Window asking you for the password, enter your Password and press Enter again,

    After that, under SPO PowerShell, type:

        

    Connect-SPOService -Credential $o365Credentials -Url "https://wicren-admin.sharepoint.com"

     Press Enter, 

     then 

      

    Set-SPOSite "https://company.sharepoint.com/sites/community" -DenyAddAndCustomizePages $false

    Press enter.

     

    For the error message, please verify the following site:

    https://springwellcommunityschool.sharepoint.com/sites/HR-Payroll 

    Is added as a site collection under

    https://springwellcommunityschool-admin.sharepoint.com/

     

    Regards,

    Michael

  • v-micsh-msft Profile Picture
    Microsoft Employee on at

    Hi @WayneKilner,

     

    Any updates on this?

     

    If issue has resolved, please share your solution in your post, which could be much more helpful for the others with the same issue.

     

    Regards,

    Michael

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 382 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 329

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard