I'm developing a Java client to interact with Moodle. I want to get all the users registered within a Moodle installation.
I found the webservice function called core_user_get_users
which returns a list with users.
When I call the service without any parameters I get a repsonse with a invalid parameter
exception.
When I add a criteria parameter (criteria[0][key]=id&criteria[0][value]=some_id
) it returns a single user with that specific id
.
I can't seem to find what criteria to pass to the function to get the entire list with users registered.
Re: How many active users do I have? If you have administration level access, go to the home page and click on users. Once in the user's view, click yje button to get to the advanced sorting tools. You want the Last login to be checked and set the "is after ..." set to a date three months ago.
Moodle has a number of core APIs that provide tools for Moodle scripts. They are essential when writing Moodle plugins.
You can use the email
criteria. If you have the value %%
it will retrieve all registered users.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With