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

core_user_get_users and core_user_get_users_by_field should not respect the maildisplay settings of a user

    XMLWordPrintable

    Details

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

      Description

      1. Use webservice core_user_get_users and core_user_get_users_by_field to get the details of a user who has set in his/her profile 'allow only other course members to see my email address'

      2. View the result. Even with full admin rights for the webservice user their will be no Email address in the result.

      Now, change the profile of the user to 'allow everyone to see my email address'.

      Repeat step 1 and you will get the email address in the result.

      ------

      It could be that this is by design or it could be a bug. What happens here is if external systems try to maintain the user accounts in your Moodle system, you can not update the mail address of the user (this could be necessary with marriages, divorces or deaths of partners)

      For maintaining user accounts this is a problem.

       

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              elodelta Richard van Iwaarden
              Participants:
              Component watchers:
              Juan Leyva, Jake Dallimore, Jun Pataleta
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated: