The user uses the web to navigate to a path and is assigned role(s) based on the path. Let's consider tokenizing this functionality this time around.


bumathan’s picture


ben kuper’s picture

I added a auto-role selection feature on this issue patch : #983612: 'Allow user to choose' functionality doesn't work . It basically take the first arguments after user/register/ (e.g. user/register/myrole) and select it in the role selection list in the registration form, providing that it's an allowed role in the AAR Allow User to Choose Settings. Additionnally, the last patch provide an option in these settings to choose whether the role selection field is shown or hidden when a role argument is passed via url thus automatically selected.
I don't know much about tokens, so i don't really know if that fits your needs, but i guess tokens would be a more solid solution.

a.luiz.n’s picture

I tried that with the path but it didn't work...
The checkboxes are still shown and with no one checked.’s picture


Very good, I hope this path, I can fill in and role-related profiles. Thank you’s picture

I hope it to work better with Profiles2
I want it to work better with Profiles2!
I wait for it to work with Profiles2!

mike.davis’s picture

Issue summary:View changes

Patch from #971320: Administrator configures registration paths, each with customised role assignments enables registration via a defined URL to be assigned a specific roles(s), but does include any tokens so this would be good to look at including.