I am using moodle 3.9 (3.9.1(Build: 20200822) and trying to find a user by email address using the functions:
I know the user exist with this email address, I have all the rights that are needed for the call (admin) and the functions are also included in the service.
I think it ist related to this post and issue (for 3.7 version but it still existf for 3.9) but is there a quick solution? It is not really an option to subscribe to all courses for the webservice user. Because we have too much and it feels not really right, also if the user is not yet in any course the email is never ever returned.
As we user the email as primary identification within our system that creates user and enables courses this is really nasty.
Also if a user already exists and I try to post the exact same values to the core_user_create_users function. I get the following disturbing exception:
That is not really helpful as you do not know if the username or the email (or both) are taken and what the problem is.
Anyone else have this Problem and does have a solution?
Does an update to a newer version fix this behaviour?
Thabks and beste regards