Set template memberships