Maybe another there's a way to accomplish this, but I'm struggling to find it.

When a user registers with a registration key, I would like it to assign the user to a corresponding group AND a corresponding role.

This way I can control not only what group content that user sees, but what permissions he has to view a block, page, etc.

Is there a way to do this?

Comments

jonathan.kim’s picture

I'm working on the same thing. I think the best way to do it is to modify the Invite module (if that's what you're using to create the reg keys) to insert a new row into the OG User Roles table.

Taxoman’s picture

Version: 6.x-1.3 » 6.x-1.x-dev

Also see this initiative: http://drupal.org/node/803172