[Rt-devel] hooking into user creation

Jesse Vincent jesse at bestpractical.com
Tue Jul 17 13:01:09 EDT 2007


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.

-j
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
Url : http://lists.bestpractical.com/pipermail/rt-devel/attachments/20070717/83b1e4c9/PGP.pgp


More information about the Rt-devel mailing list