Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-66916

Calling webservice core_user_get_users without parameters not possible

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.7.2
    • Fix Version/s: None
    • Component/s: Web Services
    • Labels:
      None
    • Affected Branches:
      MOODLE_37_STABLE

      Description

      According to the webservice documentation for the function core_user_get_users  requires a criteria parameter to filter the result. But there isn't any other function allowing to get ALL users.

      The only way I found to get all users is by giving some fake parameters:

      criteria[0][key]:email
      criteria[0][value]:%%
      

      • Why isn't there any function to get all users?
      • Why is "criteria" mandatory on the function core_user_get_users ?

      (Tested on 3.7.2 but probably affects earlier versions)

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            mcornut Cornut Matthieu
            Participants:
            Component watchers:
            Juan Leyva, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: