Tuesday 1 March 2016

Deploying SharePoint Add-in

Developer Site
SharePoint add-ins can be deployed to developer site .This site is used for creating, debugging, testing, and deploying add-ins. Apps developed in Visual Studio 2012/2013 can be deployed directly to developer site without the creation of app-catalog site as shown here .However, any add-in deployed here will not be available in the other site collections for installation.
Developer site can be created as follows:
  1. Login to the Admin center using Global administrator
  2. In SharePoint Admin Center, click on Site collection
  3. Click New - > Private Site collection and select developer site template and provide the required values as input and click on OK.
Add-in Catalog
A private add-in catalog is a dedicated site collection in SharePoint Online tenancy that hosts document libraries for SharePoint Add-ins.
The SharePoint add-in has 2 scopes: web scope and tenant scope. The scope is based on the deployment method.
  • Web scope: When the add-in is uploaded to add-in catalog it is available to be installed on all websites within the tenancy. The add-ins deployed in this manner can be installed in all site collections. However, a user needs read rights on the add-in catalog to be able to see the add-in in "Apps from your organization". This also applies to the list item in the add-in catalog. As a workaround permission inheritance can be broken on the add-in (which is a list item in add-in catalog) and provide permissions to specific users of the required site collection. These users still can install add-ins in other site collections but all users cannot add the add-ins.
  • Tenant scope (app stapling): The tenant admin can specify which websites the add-in is installed to by means of a list of managed paths, a list of site templates, or a list of site collections. By this method, the add-in gets installed to the desired site collections.

But following are the limitations for tenant scope deployment approach:
  • Add-ins deployed using this method cannot be added in add-in-part
  • Add-ins that contain custom action to ribbon cannot be deployed in this manner.
                This will provide more clarity on the same.

Side-Loading
Add-ins can be installed to SharePoint by using App side loading without having to create a developer site or an Add-in catalog. This enables development of apps in site collections which use different template other than developer templateThis requires the global admin to enable side loading feature to be activated. The main reason for blocking side loading 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, Add-ins should only be side loaded in dev/test environments and is not recommended to be used in production site. This will provide detailed description for the same

Public Office Store
An app can be made available to other users external to organization (as free and paid packages) by publishing the app to public office store

Following are the steps to deploy to office store:
  • Create and account with Microsoft’s seller dashboard.
  • Microsoft will verify the account and once the account I approved app can be submitted to the app store where it will be validated by Microsoft
  • On approval by the office store team, the app be will available to be installed.
This will provide more details for publishing the apps to app store

Resources:

Use the App Catalog to make custom business apps available for your SharePoint Online environment
Side-loading and developer feature
Apps for Office
Publish apps for Office and SharePoint to the Office Store


No comments:

Post a Comment