Change User Password - ABO

Back Office Integration Guide

Product
ABO
AFS_Version
7.9
Category
Reference Guide
language
English

As a normal user

Users can only change their password by running the following command:

curl -H Expect: -H "Content-type: application/json" -X PUT --data '"NEW_PASSWORD"' "http://$BACK_OFFICE_HOST/bo-ws/user/$USER_ID/password?afs:login=login://$USER_LOGIN:$USER_OLD_PASSWORD@$REALM_NAME"

Where

  • "NEW_PASSWORD" is the new user password.
  • $BACK_OFFICE_HOST is the Back Office host, used to access the Back Office.
  • $USER_ID is the id of the user as retrieved in the <afs:id> parameter of the XML output.
  • $USER_LOGIN is the login of the user to whom assign the new password.
  • $USER_OLD_PASSWORD is the current password of the user.
  • $REALM_NAME is the name of the realm to which the user account belongs.

As Administrator

Administrators can also change a non root user's password by running the following command:

curl -H Expect: -H "Content-type: application/json" -X PUT --data '"NEW_PASSWORD"' "http://$BACK_OFFICE_HOST/bo-ws/user/$USER_ID/password?afs:login=login://$ADMIN_LOGIN:$ADMIN_PASSWORD@$REALM_NAME"

Where

  • "NEW_PASSWORD" is the new user password.
  • $BACK_OFFICE_HOST is the Back Office host, used to access the Back Office.
  • $USER_ID is the id of the user as retrieved in the <afs:id> parameter of the XML output.
  • $ADMIN_LOGIN is the login of the administrator.
  • $ADMIN_PASSWORD is the password of the administrator.
  • $REALM_NAME is the name of the realm to which the administrator account belongs.

Any administrator can change the root password by running the following command:

curl -H Expect: -H "Content-type: application/json" -X PUT --data '"NEW_PASSWORD"' "http://$BACK_OFFICE_HOST/bo-ws/root/password?afs:login=login://$ADMIN_LOGIN:$ADMIN_PASSWORD@$REALM_NAME"

This feature only works if the Back Office is configured for internal users.