Allow Agents to update Email address

Moderator: crythias

Locked
hmmmm3
Znuny newbie
Posts: 57
Joined: 17 Feb 2012, 07:48
Znuny Version: 3

Allow Agents to update Email address

Post by hmmmm3 »

how to I allow agents without admin privileges to update their email address via the profile window? Is there a way I can add this in the code or a setting I can change?
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Allow Agents to update Email address

Post by crythias »

You can't. Most of the time, this wouldn't be a problem, though. The people who use LDAP as a back end wouldn't have this problem, and smaller organizations would have the administrator do it. How often would you expect this would be needed to happen for your agent group anyway? Once? Often?
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
hmmmm3
Znuny newbie
Posts: 57
Joined: 17 Feb 2012, 07:48
Znuny Version: 3

Re: Allow Agents to update Email address

Post by hmmmm3 »

It could happen fairly often.

My agents add customers from their sub-departments. And I have a lot of agents.

If the agent's email address changes, I want them to be able to update it themselves, rather than my admin having to do it.

Thanks for your help.
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Allow Agents to update Email address

Post by jojo »

Hi,

this is not possible. Typically a mail address of an agent is not chaning often and as already answered often it is stored in LDAP

Agents can change mail addresses of customers and add customers.
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
hmmmm3
Znuny newbie
Posts: 57
Joined: 17 Feb 2012, 07:48
Znuny Version: 3

Re: Allow Agents to update Email address

Post by hmmmm3 »

I know it's NOT possible, but how do I do it?

If YOU had to do this for a client, how would you do it? Is there something I need to add into the config setting?

I'm finding that anything is almost possible in OTRS, its just a matter of finding how to manipulate the code? For this one, I'm not sure where to start due to how the agents profile page is created.

Any help from the MASTER gurus would be appreciated.
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Allow Agents to update Email address

Post by jojo »

this would require some development
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Allow Agents to update Email address

Post by crythias »

jojo is a master guru.
hmmmm3 wrote:If YOU had to do this for a client, how would you do it? Is there something I need to add into the config setting?
I'd edit Kernel/Output/HTML/Standard/AgentPreferences.dtl and try something like

Code: Select all

<label class="Mandatory" for="UserEmail">Email:</label>
<input type="text" name="UserEmail" id="UserEmail" value="$QData{"UserEmail"}" class="W50pc Validate_Email Validate_Required" maxlength="250" aria-required="true" aria-invalid="false">
YMMV. Use at own risk. If it breaks, you get to keep both pieces. I didn't try it. I made it up from inspect element of the Agent Editor.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Locked