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?

4 Answers 4


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.




deletes groups.



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

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


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.

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.