Feb 28 2018 09:39 AM
Is it possible to deply an app at the root site level only and should not be deployed into the subsites.
Thanks
Feb 28 2018 11:51 PM
THis should be no problem. As you need to activate the app per site.
Mar 01 2018 02:05 AM
I want to restrict users to add the app into the sub sites.
How do i go about putting in place the restriction.
Mar 08 2018 11:13 AM - edited Mar 08 2018 11:19 AM
SolutionI think the only option to restrict this, is by not giving users in subsites the permissions required to install apps. A user must have the Manage Web site and Create Subsites permissions to add an app for SharePoint. By default, these permissions are available only to users who have the Full Control permission level or who are in the site Owners group. So without these permissions your users won't be able to install apps.
Additionally (or alternatively), if your app is designed to only work correcty when installed at the Root-site level, you can check for this condition inside of your app and show a message (or other kind of notification) and disable the rest of your app's logic programmatically if the app's "Host Web" is not the root-site.