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

core_user_get_users_by_field doesn't always find by email unless moodle/site:viewuseridentity is allowed

    XMLWordPrintable

    Details

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

      Description

      Finding a user by email doesn't work unless the user has set their profile to "Allow everyone to see my email address". The webservice needs an additional permission: moodle/site:viewuseridentity. If this expected behaviour then either the additional permission should be listed as a dependency when adding the function, or the limitation should be documented.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated: