Genesys CTI User Forum > Genesys-related Development

Changing agent's password via psdk

(1/1)

fabio.meschini:
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

cavagnaro:
Check CfgServer
Guess the user under which your app is running is the one who should be able to change the password

Townaz:
[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?

Kubig:
You have to enable change the password to the users through configuration on framework level (confserv)

xember:
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();
      }

Navigation

[0] Message Index

Go to full version