SharePoint 2010 – Multi Tenancy Support – Part 1

SharePoint 2010 has a built-in support for multi tenancy. At the core multi tenancy requires isolation of data, operational services and management. All these are handled by Subscription Id. Each Subscription Id can refer to a tenant. Also these ids are used for partitioning of the content data used by each tenant. The same id is used by service applications to track usage which internally helps on Reporting, Auditing and Chargeback.

Below is a sample diagram I tried to create to provide high level overview of the components in SharePoint 2010.



Subscription Ids are GUID to which multiple site collections can be assigned. Once a site collection is assigned to a subscription id, it can not be removed. It is recommended that all the site collections belonging to a single tenant is maintained in a single WFE (web front end) and content database. This will ensure the easier maintenance of the service application usage by an individual tenant.

Using Subscription Id requires ‘Microsoft SharePoint Foundation Subscription Settings Service Application’ to be enabled. I couldn’t see this service in my service application listing under Central Administration.

Below are the steps to enable this service:

#1: Add a managed account for ‘Microsoft SharePoint Foundation Subscription Settings Service Application’. Create a windows account called ‘SPMTServices’. Go to Central Administration –> Security –> General Security –> Configure managed accounts.



Now we need to run the PowerShell command to enable the ‘Microsoft SharePoint Foundation Subscription Settings Service Application’.


And run the below command.


Get-SPServiceInstance | where{$_.GetType().Name -eq "SPSubscriptionSettingsServiceInstance"} | Start-SPServiceInstance

$acc = Get-SPManagedAccount  "<<DomainOrCompName>>\SPMTServices"
$appPool = New-SPServiceApplicationPool -Name SPMTSettingsServiceAppPool -Account $acc

$app = New-SPSubscriptionSettingsServiceApplication –ApplicationPool $appPool –Name SPMTSettingsServiceApp –DatabaseName SPMTSettingsServiceDB
$proxy = New-SPSubscriptionSettingsServiceApplicationProxy –ServiceApplication $app


*Note: We need to run the powershell as ‘Run As Administrator’.

Now we can see the service application available in the listing screen.


Next we will see how to create subscription ids, how to assign site collection to subscription ids and how to create tenant admin for each subscription ids.


3 Responses to “SharePoint 2010 – Multi Tenancy Support – Part 1”

  1. Hetal Says:

    please tell me about next article??

    • Ajay Says:


      I stopped on this thread because Microsoft Guys has already posted the relevant code on Codeplex which covers this.

      You can find it here:

  2. Linxiao's Sharepoint, Dyanmics CRM and BI Space Says:

    […] […]

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: