I am using the autoassignrole module to assign ROLE#1 to anyone registering on my site.
Once signed in, users with ROLE#1 permissions can create users of their own for which I am using the uCreate module.
I have it setup so that when creating users via the uCreate module, the new user can be assigned ROLE#2 or ROLE#3 permissions.
The problem is at this point. The new user also inherits the ROLE#1 from the autoassignrole module.
So, I put together a custom module and implemented hook_user and the plan is to detect when a user is being registered and programmatically stop the autoassignrole user_hook … how do I do that?
There are 2 potential solutions that I see at a high level: