Changing agent's password via psdk

Hi all,
i’m trying to change password performing the request named RequestChangePassword
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

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

OP. Did you manage to get around this?

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

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