Override User Class

Hi Everyone,

I have requirement where I have to override Users API and send some additional data in user API. And send the full path of the files in users API.

For this I have to override users.class and make change in fetch method. Can anyone help me to achieve this. Please help me as this is urgent.

It is not recommended to alter Dolibarr core files, as it will become “un-updatable”.

You can use a custom module to achieve what you need.

Thanks for your response.

I know I should do it using new module. But I want to know how to override(extend) the user API class or functions.