Author Topic: Changing agent's password via psdk  (Read 3508 times)

Offline fabio.meschini

  • Newbie
  • *
  • Posts: 10
  • Karma: 0
Changing agent's password via psdk
« 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

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7639
  • Karma: 56330
Re: Changing agent's password via psdk
« Reply #1 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

Offline Townaz

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
Re: Changing agent's password via psdk
« Reply #2 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?

Offline Kubig

  • Hero Member
  • *****
  • Posts: 2752
  • Karma: 44
Re: Changing agent's password via psdk
« Reply #3 on: November 24, 2015, 08:41:16 AM »
You have to enable change the password to the users through configuration on framework level (confserv)

Offline xember

  • Newbie
  • *
  • Posts: 19
  • Karma: 0
Re: Changing agent's password via psdk
« Reply #4 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();
      }