Office 365: How to enable the HTML Field Security link in modern SPO sites!

By default, Modern SharePoint Online (SPO) Sites do not provide the “HTML Field Security” link in the site settings page. This link allows to add new external Urls on iFrames added to SPO pages:

image 

In order to enable this link in a modern SPO Site, you only need to execute the following PowerShell script:

$sUserName="<O365User>@<O365Domain>.onmicrosoft.com"
$sMessage="Type your Office 365 Credentials"
$O365Credentials = Get-Credential -UserName $sUserName -Message $sMessage
$SPOAdminUrl="https://<O365Domain>-admin.sharepoint.com"
Connect-SPOService -Credential $O365Credentials -Url $SPOAdminUrl

$sModernSPOSite="https://<O365Domain>.sharepoint.com/sites/<ModernSPOSite>"
Set-SPOSite $sModernSPOSite -DenyAddAndCustomizePages $false 

Once you execute the script in the SharePoint Online Management Shell, you will see the HMTL Field security link in the site settings page.

image

Office 365: Como habilitar el enlace HTML Field Security en Sitios Modernos de SPO (I)!

Por defecto, los Sitios Modernos de SharePoint Online (SPO) no tienen habilitado el enlace “HTML Field Security” que permite añadir nuevas direcciones Urls externas en iFrames incrustados en páginas de SharePoint:

image 

Para poder habilitar este enlace en un Sitio Moderno, sólo necesitamos ejecutar el siguiente Script PowerShell:

$sUserName="jcgonzalez@nuberosnet.onmicrosoft.com"
$sMessage="Type your Office 365 Credentials"
$O365Credentials = Get-Credential -UserName $sUserName -Message $sMessage
$SPOAdminUrl="https://nuberosnet-admin.sharepoint.com"
Connect-SPOService -Credential $O365Credentials -Url $SPOAdminUrl

$sModernSPOSite="https://nuberosnet.sharepoint.com/sites/aos"
Set-SPOSite $sModernSPOSite -DenyAddAndCustomizePages $false 

Tras ejecutar el script en SharePoint Online Management Shell, podremos comprobar que el enlace HTML Field Security se muestra.

image