I’ve tried with Postman and same response, normally I use Basic Authentication but just to give it a try I’ve created an app token, change to Bearer Authentication, same response.
But If i just use curl from the command line, it works, example:
OK, I looked a bit into the code. I think I found something but I am not sure as not all pieces fall into a correct spot.
Are you trying to change the currently logged in user’s mail or (as an admin) the mail address from another user?
Can you please let Postman create a curl request for the request in question? You can hide password, user name, and host if you like as well as session cookies. Let’s have a look what there the difference is.
I can (if I know more details) also run this against my test instance and see if I can debug it further.
Hi, I’m changing the email (or password) of another user, but using the admin credentials.
I’ve solved it modifying the http request, normally I only use SetHeader “Authorization”,“Basic xxxxx”, I’ve added also to the request SetCredentials user,password,0 (basic auth) and now it works. Don’t know why I need to set the credentials in two parts, also this only happens in ocs/v1.php api since in ocs/v2.php there is no problem.