Keywords

user

The user URL keyword enables the B1WebAPI web service to update user authentication via standard UDFs that are created in SAP Business One during installation. These UDFs can be found on both the Contact Person records on the Business Partner as well as the Employee Master records in the HR module. user updates support login and resetting the password (setpassword).

login

Passing the login keyword as part of the request directs the B1WebAPI web service to authenticate the user information you pass against the UDF information stored in SAP Business One.

Syntax: [/<optional-profile>]/user/login/username=<username>&password=<password>

Example (default profile): /user/login/username=test%40test.com&password=testing

Example (“myCompany” profile): /myCompany/user/login/username=test%40test.com&password=testing

setpassword

Passing the setpassword keyword as part of the request directs the B1WebAPI web service to update the user’s password with the new information you pass. This provides the ability to reset a user’s password via xml (which is stored encrypted in SAP Business One).

Syntax: [/<optional-profile>]/user/setpassword/username=<username>&oldpassword=<old-password>&newpassword=<new-password>

Example (default profile): /user/setpassword/username=test%40test.com&oldpassword=testing&newpassword=newpass

Example (“myCompany” profile): /user/setpassword/username=test%40test.com&oldpassword=testing&newpassword=newpass