Get all Users of the Moodle-Database with API

Get all Users of the Moodle-Database with API

by Moritz Grey -
Number of replies: 5

Hey everyone, 


how can i get the Information off all Users which are in the moodle-database

Which Webservice i should use?

Thanks for help. 


MoGr

Average of ratings: -
In reply to Moritz Grey

Re: Get all Users of the Moodle-Database with API

by Daniel Neis Araujo -
Picture of Core developers Picture of Plugin developers Picture of Translators
Hello,

For what I know, there is no such web service.
We could use core_user_get_users but it always need a criteria to filter.
A possibility is create a report using Configurable Reports plugin and get the users via it's webservice that returns the data of the report given it's id.

Best,
Daniel
In reply to Daniel Neis Araujo

Re: Get all Users of the Moodle-Database with API

by We Be -
Use the Widcard % with core_user_get_users

criteria[0][key]="lastname"
criteria[0][value]="%"
In reply to We Be

Re: Get all Users of the Moodle-Database with API

by Brian Merritt -
Picture of Particularly helpful Moodlers
Note this works but is very heavy on the database for large Moodle systems so may run out of memory or timeout.