views:

360

answers:

1

Hi

On my WSS server I have run the following stsadm command to filter the people picker results:

stsadm.exe -o setproperty -url http://myserver -pn "peoplepicker-searchadcu stomfilter" -pv "(memberOf=CN=SharePoint,OU=AccessGroups,DC=contosio,DC=local)"

My WSS sites are all used by different groups of users.

Whenever I create a new site collection in WSS I want to ensure that I can filter the people picker to only show he relevant users for that group - can I automate this or would I have to manually do something like the above stsadm command?

All the best

A: 

You could implement a SPWebProvisioningProvider this is a piece of code which can be run when a new site (based on a specific site definition) is created.

You would need to ensure that your site collection root was using the appropriate site definition.

More info can be found here.

You would need to either implement your stsadm call using the object model, or else wrap the specific call to that command in some custom code.

Charlie