Hey Gene, thank you for your example code! You said, that you poked aroung in the database. I guess, that this database would help me a lot finding objects and their preferences I can use in a custom condition or custom action. Would you tell where i can find this database exactly so that i can try to understand perl a little? Thank you! Best regards, Tommy!
>>> Gene LeDuc <[email protected]> 2009-05-18 18:39 >>> Ah, didn't realize you meant creating a user via the web. Poking around in the database, I'd guess that something like the following might work as your custom condition: { ### True when new user created via web my $TA = $self->TransactionObj; my $val = $TA->ObjectType eq 'RT::User' && $TA->Type eq 'Create' && $TA->CreatorObj->Id > != 1; return $val; } I haven't tried the above (or used ObjectType), but I think it's at least a good place to start. The following observations are for v3.6.3. When a user is created via an e-mail ticket, the Creator is the System user, and the System user is #1. When a user is created via a web session, the Creator is the logged in user, which is always > #12. Set this up in a global scrip and use a variant of the auto-password template you're already using for tickets. If it doesn't work, throw some debug logging stuff in and see what you get. Once you get it working, this would be a good wiki addition! Gene At 08:29 AM 5/18/2009, Thomas Fluch wrote: >Thanks for your answer. > >I already set up the automatical creation of a username and password for >new users, but thats not what i meant. > >I mean, that if I AM CREATING a new user as an admin or root via the Users >-> New User interface i dont want to manually inform this user (or more >users) about their login information. If I click on "create", the user >should automatically get an email with the login information. > >I cant solve that issue by any templates or existing scripts, because the >condition "create", which i used to inform new customers about their login >information, refers to "create a ticket" and not "creat a user". So >actually I dont want to inform someone when he creates a ticket. I want to >inform a supporter when i create his account. > >Regards, >Tommy! > > > >>> Gene LeDuc <[email protected]> 2009-05-18 17:23 >>> >One way to auto-assign a new user an account password is to do it via the >autoreply template, no new scrips needed. There's a good example you can >start with on the wiki. > >At 01:36 AM 5/18/2009, tommy0660 wrote: > > >Another thing I would want to implement is, that when a new user has been > >created, immediately after the creation the user should be informed via > >email to his email-address about his login information like: > > >-- >Gene LeDuc, GSEC >Security Analyst >San Diego State University -- Gene LeDuc, GSEC Security Analyst San Diego State University _______________________________________________ http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users Community help: http://wiki.bestpractical.com Commercial support: [email protected] Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at http://rtbook.bestpractical.com
_______________________________________________ http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users Community help: http://wiki.bestpractical.com Commercial support: [email protected] Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at http://rtbook.bestpractical.com
