SaveUser Edit user data with userConnection InvalidPermission
  • Hi karim,

    I am trying to Edit the user data using userconnection, but I am getting InvalidPermission Error:

    UserConnection userconn = new UserConnection(Config_Apstrata.Apstrata_url, Config_Apstrata.Apstrata_key, apstrata_username,  apstrata_pass);
    Client client = new Client(
    parameters.add(new BasicNameValuePair("login", email
    parameters.add(new BasicNameValuePair("apsdb.update", "true"));
    response = client.callAPI("SaveUser", parameters, filesMap, AuthMode.SIMPLE);

    Please Can you advice, Does a user capable of editing his own data , cz I don't want to use the owner Connection to do this.

    Thank you

  • Hello Nour,

    A user can update his own profile (use "apsdb.update=true") but cannot create other users. If this is what you would like to do, then you need to create a script within which you grant execution permissions to a specific group.

    Awaiting your reply
  • Hi Karim,

    Yes it is clear now, no I just want a user to Edit his own data, and this worked for me with UserConnection as you mentioned above.

    Thank you.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!