Custom Display of item in ticket for certain group?

I made modifications as shown by someone on the list to add some items to
the people section. For example, my “People” section of a ticket now looks
like this:

X People
Requestors: username@mydomain.com
Real Name: Customers Real Name
RT Username: username
Home Phone: 555-555-5555
Work Phone:
Mobile Phone:
Cable Modem Type:
Cable Modem MAC:
Email Address: username@mydomain.com
Email Password: Plaintext_password
Owner: gevans support@mydomain.net
Cc:
AdminCc:

This was set up this way because I and a few others need to have access to
the users password. We have another group that does some after-hours work
for us and I would like for them to see all of the same information, but NOT
the password. Would this be something I do with templates or ???

I was thinking something like this:

People
Requestors: username@mydomain.com
Real Name: Customers Real Name
RT Username: username
Home Phone: 555-555-5555
Work Phone:
Mobile Phone:
Cable Modem Type:
Cable Modem MAC:
Email Address: username@mydomain.com
Email Password: ********
Owner: gevans support@mydomain.net
Cc:
AdminCc:

Not even a clue where I might begin on this. Maybe a scrip that if the user
is in Group “B” then change the password to ****'s? Not sure, so I thought
I would ask.

Greg Evans
Hood Canal Communications
(360) 898-2481 ext.212

Not even a clue where I might begin on this. Maybe a scrip that if the user
is in Group “B” then change the password to ****'s? Not sure, so I thought
I would ask.

Actually, you’re pretty close.

  1. add a new Group right for people that will see the password (e.g.
    SeePassword) – see the top of MoreAboutPrivilegedUsers on the wiki for
    how to do this

  2. give this new right to the group that needs it

  3. Wherever it is that you added the code to print the password, add a
    new if block:

Email Address: username@mydomain.com
%my($displayedPassword) = “***”;
%if ( $Ticket->CurrentUserHasRight(‘SeePassword’) ) {
% $displayedPassword = WhateverYouSetItToNow;
%}
Email Password: <% $displayedPassword %>

See CleanlyCustomizeRT for more info.

Regards,

joe
Joe Casadonte
joe.casadonte@oracle.com

========== ==========
== The statements and opinions expressed here are my own and do not ==
== necessarily represent those of Oracle Corporation. ==
========== ==========