I have created a branding solution which contains 2 features. One is for the MySites root site collection and the other is for any other Site Collection type.

I do not want people activating the MySites feature in a regular site collection. Is there any way to target my features based on the Site Collection Type / Template or ID? This way, the MySites feature would not show in a regular site collection's feature list

  • Do you have both Mysites and team sites in one web app? why not mark the feature as hidden?
    – Waqas Sarwar MVP
    Apr 17, 2015 at 19:25
  • Different Web Apps. If I mark as hidden? How would I activate it? Apr 17, 2015 at 19:30
  • 1
    Powershell, as long as you have the GUID Apr 17, 2015 at 19:45

1 Answer 1


So i think, you can use "Feature Stapling / Feature Site Template Association" options. this way you can associate it to a site template. We had the same thing for our SP 2010 deployment for mysite, i am not developer so i dont know insider information.

Here are good resource:

Feature Stapling / Feature Site Template Association

Feature/Site Template Associations


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.