While working on SPExLib (several months ago), I revisited this post , which presented a functional approach to a solution Adam describes here . Both posts include logic to add an SPWeb group association, which most simply could look something like this...