dolibarr 21.0.0-beta
server_user.php File Reference

File that is entry point to call Dolibarr WebServices. More...

Go to the source code of this file.

Functions

 getUser ($authentication, $id, $ref='', $ref_ext='')
 Get produt or service.
 
 getListOfGroups ($authentication)
 getListOfGroups
 
 createUserFromThirdparty ($authentication, $thirdpartywithuser)
 Create an external user with thirdparty and contact.
 
 setUserPassword ($authentication, $shortuser)
 Set password of an user.
 

Detailed Description

File that is entry point to call Dolibarr WebServices.

Definition in file server_user.php.

Function Documentation

◆ createUserFromThirdparty()

createUserFromThirdparty ( $authentication,
$thirdpartywithuser )

Create an external user with thirdparty and contact.

Parameters
array{login:string,password:string,entity:?int,dolibarrkey:string}$authentication Array of authentication information
array{name:string,firstname:string,name_thirdparty:string,ref_ext:string,client:string,fournisseur:string,address:string,zip:string,town:string,country_id:string,country_code:string,phone:string,phone_mobile:string,fax:string,email:string,url:string,profid1:string,profid2:string,profid3:string,profid4:string,profid5:string,profid6:string,capital:string,tva_assuj:string,tva_intra:string,login:string,password:string,group_id:string}$thirdpartywithuser Datas
Returns
array{id?:int,result:array{result_code:string,result_label:string}} Array result

Definition at line 496 of file server_user.php.

References $conf, $id, check_authentication(), and dol_syslog().

◆ getListOfGroups()

getListOfGroups ( $authentication)

getListOfGroups

Parameters
array{login:string,password:string,entity:?int,dolibarrkey:string}$authentication Array of authentication information
Returns
array{result:array{result_code:string,result_label:string}} Array result

Definition at line 427 of file server_user.php.

References $conf, check_authentication(), dol_syslog(), and getDolGlobalString().

◆ getUser()

getUser ( $authentication,
$id,
$ref = '',
$ref_ext = '' )

Get produt or service.

Parameters
array{login:string,password:string,entity:?int,dolibarrkey:string}$authentication Array of authentication information
int$idId of object
string$refRef of object
string$ref_extRef external of object
Returns
mixed

Definition at line 337 of file server_user.php.

References $conf, $id, check_authentication(), dol_print_date(), and dol_syslog().

◆ setUserPassword()

setUserPassword ( $authentication,
$shortuser )

Set password of an user.

Parameters
array{login:string,password:string,entity:?int,dolibarrkey:string}$authentication Array of authentication information
array{login:string,password:string}$shortuser Array of login/password info
Returns
mixed

Definition at line 695 of file server_user.php.

References $conf, check_authentication(), and dol_syslog().