[Rt-devel] hooking into user creation
Joby Walker
joby at u.washington.edu
Tue Jul 17 13:43:37 EDT 2007
Nicholas Clark wrote:
> 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
In our experience it is easier to just add columns to the User and or
Group tables than use Custom Fields. It is *FAR* cleaner and faster.
Joby Walker
C&C SSG, University of Washington
More information about the Rt-devel
mailing list