For a project that I'm working on that will be a hosted solution I needed to extend the security API to introduce an organisation entity. An organisation has a one-to-many relationship with the group entity.
If this code is useful to anybody I can provide these files as a patch. Cheers Adam
