문제

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?

도움이 되었습니까?

해결책

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.

다른 팁

Also

CurrentWeb.BreakRoleInheritance(false);

deletes groups.

Use

<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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 sharepoint.stackexchange
scroll top