Tenancy: — A SharePoint tenancy is a set of site collections that are configured and administrated as a unit.
In SharePoint Online, when a new customer establishes an Office 365 account to host its SharePoint sites, the Office 365 environment creates a new tenancy. The customer’s business users that access the tenancy are known as tenants.
Now what is Tenant Scope for an App and what are various scenarios where this can be used.
App Scope and App permissions are two different things, people usually use these terms as same.
Tenancy scope for the app’s permissions is different from Tenancy scope for the app itself. Tenancy scope for the app is a matter of how the app is installed. Tenancy scope for the permissions of the app is about what it has permissions to. If the app asks for Tenancy scope permissions, then it is granted rights to all l websites in the tenancy (regardless of whether it is itself installed with tenancy scope or not).
All permissions that you request in the app manifest are permissions to the host web, not the app web. Your app always has full permissions to the app web
There are two possible app scopes web scope or tenant scope. This is not dependent on the person who developed the App but this depends completely on the Administrator who installs the App.
When an App is installed in App catalog it is available for all websites in that Tenancy to be installed, when we install App on each Website manually it is web scoped and when it is installed as a batch to all websites specified in a tenancy is a Tenant scope App. In tenancy scope it’s a single App Web shared across all Host Webs.
On the other hand Web scoped Permission in App Permissions provides you access on the Host Web. And Tenant scoped permission you get access to all other websites in the tenancy.
Permissions are managed in AppManifest in the App while App Scope is defined at the time of Installation.
To Install App with Tenant Scope:
- Create and open App Catalog Site.
- Go to Site Contents, click Add an App and install the App.
- After App is installed , click on “…” for properties and there select Deployment
4. Managed Paths and Site templates are other parameter based on which you can filter the installation of the App.
When App is installed to “All paths” then you are installing the app on every website in the tenancy. But since you are installing with tenant scope installation, there is just a single instance of the app being shared by all the websites. So the permissions granted in AppManifest are being granted to this one instance.