Note 1: By default this feature is enabled in “Developer Site”. So if your site has been created with the “Developer Site” template then do not use this article since this is for non-developer sites.
Note 2: Enabling this feature is not recommended for production sites. Sideloading apps is insecure. The main reason for blocking sideloading by default on non-developer sites is the risk that faulty apps pose to their host web/host site collection. Apps have the potential to destroy data and make sites or, given enough permissions, can even make site collections unusable. Therefore, apps should only be sideloaded in dev/test environments and never in production.
(Referenece: Apps for Office and SharePoint blog)
Pre-requisites
- Install Windows PowerShell from Windows Management Framework (I installed the Windows Management Framework 3.0).
- Then install “SharePoint Online Management Shell” Link.
Procedure
- Execute a PowerShell script in any desktop not requiring a SharePoint Server (of course that’s the purpose of SharePoint Online).
- Be sure you enable “ExecutionPolicy” in the client desktop where your PowerShell will be executed.
- Open “SharePoint Online Management Shell” with “Run as Administrator” and execute Set-ExecutionPolicy RemoteSigned
Screenshot for reference only,
- Now execute the PowerShell from “SharePoint Online Management Shell”.
- The PowerShell script is provided here and also attached to the article.
Code
- $programFiles = [environment]::getfolderpath("programfiles")
- add - type - Path $programFiles '\SharePoint Online Management Shell\Microsoft.Online.SharePoint.PowerShell\Microsoft.SharePoint.Client.dll'
- Write - Host 'Ready to enable Sideloading'
- $siteurl = Read - Host 'Site Url'
- $username = Read - Host "User Name"
- $password = Read - Host - AsSecureString 'Password'
- $outfilepath = $siteurl - replace ':', '_' - replace '/', '_'
- try {
- [Microsoft.SharePoint.Client.ClientContext] $cc = New - Object Microsoft.SharePoint.Client.ClientContext($siteurl)[Microsoft.SharePoint.Client.SharePointOnlineCredentials] $spocreds = New - Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($username, $password)
- $cc.Credentials = $spocreds
- $site = $cc.Site;
- $sideLoadingGuid = new - object System.Guid "AE3A1339-61F5-4f8f-81A7-ABD2DA956A7D"
- $site.Features.Add($sideLoadingGuid, $true, [Microsoft.SharePoint.Client.FeatureDefinitionScope]::None);
- $cc.ExecuteQuery();
- Write - Host - ForegroundColor Green 'SideLoading feature enabled on site'
- $siteurl#Activate the Developer Site feature
- } catch {
- Write - Host - ForegroundColor Red 'Error encountered when trying to enable SideLoading feature'
- $siteurl, ':'
- $Error[0].ToString();
- }
- Screenshot for reference only.


Now you are all ready to deploy your apps into the SharePoint Online Site.
Ravivarma BalakrishnanPosted Aug 22, 2015, 11:39 AM
Thanks all again...
Santhakumar MunuswamyPosted Aug 22, 2015, 7:57 AM
Good Article. Thanks for sharing
Ankit BansalPosted Aug 20, 2015, 1:44 AM
good one...
RakeshPosted Aug 19, 2015, 1:28 PM
Good one
Ravivarma BalakrishnanPosted Aug 19, 2015, 12:44 PM
Thanks all.....
Abhay ShankerPosted Aug 19, 2015, 11:53 AM
Thanks for sharing...
Nilesh JadavPosted Aug 19, 2015, 7:26 AM
Nice share sir
Sibeesh VenuPosted Aug 19, 2015, 6:53 AM
Nice Share
Yashwanth MuthineniPosted Aug 19, 2015, 6:01 AM
Good one..
Gopi ChandPosted Aug 19, 2015, 6:01 AM
Nice work
Karthikeyan KPosted Aug 19, 2015, 4:29 AM
Thanks for sharing
Rajeesh MenothPosted Aug 19, 2015, 4:22 AM
Nice Share
Mohammed IbrahimPosted Aug 19, 2015, 4:14 AM
nice
Vaikesh K PPosted Aug 19, 2015, 4:10 AM
Good