SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've created a SP2010 Web Template based on a publishing site.
I've added a feature receiver which removes all default SharePoint groups (Activated through my onet.xml file).
Strangly enough the default groups:
Owners, Members, Visitors
Are still appearing I thought putting my feature last in the onet.xml file (just before )should only executed it at the end of the site creation but it looks creation of the default groups happens after feature activation?

Does anyone know how to create a new site with not a single default group?

share|improve this question
up vote 0 down vote accepted

The site provisioning process creates those groups after your site-def and features have finished running, and also after any WebAdded event receivers. The same applies to new subsites being added to the top navigation bar.

So I don't think there is any way short of a timer job or a master page delegate control that can achieve what you're asking.

share|improve this answer



deletes groups.

share|improve this answer


<ExecuteUrl Url="_layouts/Sibur.Archive/Configure.aspx?Mode=AfterCreation" />

to execute code to delete default groups. This page is custom.

share|improve this answer

You can start a worker process in the activation code that will wait for the web to be provisioned and then remove the permissions you want.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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