Hiding SharePoint Apps/Add-ins from users

Problem Statement
Users who have full control are able to delete the mandatory apps from site.

Question
Is it possible to hide an installed/added app (in a site collection) from users with specific permissions or from a user group?

Answer
We can hide an app by embedding a JQuery custom action (jQuery(‘img[alt=”YourAppTitle”]’).closest(‘div[class^=”ms-vl-apptile”]’).hide();) but cannot hide an app from the view all site content page with a direct app permission.

How can I control/govern?
We can control the apps from app catalog site. If you have a mandatory app that should not be removed by site users with full control then follow the below steps:

  • Install the mandatory app in the app catalog site
  • Select the deployment option from the app properties as shown below

hideapp1

  • You will be redirected to the Manage App Deployment page
  • Specify what site collections/managed paths/site templates should have this app available and click OK.
  • Go to a site where you configured to install the app. You should be able to see the app installed.
  • Now if you look at the options in the app, you will not see the remove option. This is because the app is now controlled from the central place (app catalog).

hideapp2

  • Based on the configuration changes from the app catalog SharePoint will propagate the changes to the respective sites.
Advertisements

About Joseph Velliah
As a SharePoint Developer my professional interests tend to be technical and SharePoint focused. I run a blog at "SP RIDER" where you can expect to read HOW TOs and scenarios that I run into during my day to day job. I hope my posts will give back a little to the community that is helped me.

Comments are closed.

%d bloggers like this: