[Rt-devel] hooking into user creation

Nicholas Clark nick at ccl4.org
Tue Jul 17 13:26:09 EDT 2007


On Tue, Jul 17, 2007 at 01:01:09PM -0400, Jesse Vincent wrote:
> 
> On Jul 17, 2007, at 12:06 PM, Nicholas Clark wrote:
> 
> >On new user creation, I'd like to automatically add the user to the  
> >'correct'
> >group as determined by a custom field set on the create user page.
> >
> >I can't work out where the least invasive place to hook in is.  
> >Wrapping
> >RT::Interface::Web::_ProcessObjectCustomFieldUpdates() doesn't feel  
> >that
> >clean.
> >
> 
> Unfortunately, custom fields get set _after_ the user is created.  
> Which is going to make any solution here...unclean. I wonder if it  
> would be better to have a custom groups dropdown that you can use to  
> pick a group for the user on creation.

That's somewhat icky too, as I'm also relying on the value of the custom
field in quite a few other places to identify the company that the user
belongs to. (And get back to the group). So really both need to be set.

Nicholas Clark


More information about the Rt-devel mailing list