We are looking for a way to change the usergroup of a user from the frontend.
That particular field is only visible for superusers.
I know a superuser can log into the backend and change the usergroup.
But in our case we need a convenient frontend change.
We defined 3 different kind of users, and all have different access.
We only want to offer the options public, guest and registered.
Somewhere I read a post from Krileon saying:
“That's not normally something I'd recommend to allow on frontend, but it's doable combining a select fieldtype with a usergroup auto action (would require 1 auto action per select option).”
We defined a select fieldtype and now we are looking for the appropriate auto actions.
Can you help me with an example of such an auto action code?
Regards,
Patrick