Genesys CTI User Forum

Genesys CTI User Forum => Genesys-related Development => Topic started by: fabio.meschini on February 19, 2015, 05:19:46 PM

Title: Changing agent's password via psdk
Post by: fabio.meschini on February 19, 2015, 05:19:46 PM
Hi all,
i'm trying to change password performing the request named [b]RequestChangePassword[/b]
but i always receive an event error with this description. "User is not allowed to change the password at this account". I've tried to change on CME some permissions to the person used on protocol for connecting but i can't understand the way to solve this error.

Can anybody can help me?
Thank you in advance,
Fabio
Title: Re: Changing agent's password via psdk
Post by: cavagnaro on February 19, 2015, 05:47:07 PM
Check CfgServer
Guess the user under which your app is running is the one who should be able to change the password
Title: Re: Changing agent's password via psdk
Post by: Townaz on November 24, 2015, 06:55:10 AM
[quote author=fabio.meschini link=topic=8722.msg38712#msg38712 date=1424366386]
Hi all,
i'm trying to change password performing the request named [b]RequestChangePassword[/b]
but i always receive an event error with this description. "User is not allowed to change the password at this account". I've tried to change on CME some permissions to the person used on protocol for connecting but i can't understand the way to solve this error.

Can anybody can help me?
Thank you in advance,
Fabio
[/quote]

OP. Did you manage to get around this?
Title: Re: Changing agent's password via psdk
Post by: Kubig on November 24, 2015, 08:41:16 AM
You have to enable change the password to the users through configuration on framework level (confserv)
Title: Re: Changing agent's password via psdk
Post by: xember on November 27, 2015, 11:22:47 PM
Can`t you query the person?

      CfgPersonQuery persq = new CfgPersonQuery();
      persq.setUserName("username");
     
      try {
        CfgPerson pers = confService.retrieveObject(persq);
        pers.setPassword("newpassword");
        pers.save();
      } catch (ConfigException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
      }