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

LIS Group Variables support in LTI

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      • Create a new course
      • Add an ‘External Tool’ activity to the new course and configure it:
        • Use an arbitrary Tool-URL (does not have to exist)
        • Add line “mygroups=$Moodle.Person.userGroupIds” to the custom parameters field (you might have to unfold the form to see the custom parameters field)
        • Save and return to the course
      • Click the ‘External Tool’ activity and capture the network traffic of your browser.
        • The “launch.php?.. “ contains a from with name “ltiLaunchForm” that should contain the following two hidden fields:
          • <input type="hidden" name="custom_mygroups" value=""/>
        • Now add two groups to your course and add yourself to the first group.
        • Again click the ‘External Tool’ activity and capture the network traffic of your browser.
          • The “launch.php?.. “ contains a from with name “ltiLaunchForm” that should now contain the following two hidden fields:
            • <input type="hidden" name="custom_mygroups" value="1234"/>
              whereas 1234 should be the id of your first group
        • Add yourself to the second group
        • Again click the ‘External Tool’ activity and capture the network traffic of your browser.
          • The “launch.php?.. “ contains a from with name “ltiLaunchForm” that should now contain the following two hidden fields:
            • <input type="hidden" name="custom_mygroups" value="1234,1235"/>
              whereas 1234,1235 should be the two group-ids
      Show
      Create a new course Add an ‘External Tool’ activity to the new course and configure it: Use an arbitrary Tool-URL (does not have to exist) Add line “mygroups=$Moodle.Person.userGroupIds” to the custom parameters field (you might have to unfold the form to see the custom parameters field) Save and return to the course Click the ‘External Tool’ activity and capture the network traffic of your browser. The “launch.php?.. “ contains a from with name “ltiLaunchForm” that should contain the following two hidden fields: <input type="hidden" name="custom_mygroups" value=""/> Now add two groups to your course and add yourself to the first group. Again click the ‘External Tool’ activity and capture the network traffic of your browser. The “launch.php?.. “ contains a from with name “ltiLaunchForm” that should now contain the following two hidden fields: <input type="hidden" name="custom_mygroups" value="1234"/> whereas 1234 should be the id of your first group Add yourself to the second group Again click the ‘External Tool’ activity and capture the network traffic of your browser. The “launch.php?.. “ contains a from with name “ltiLaunchForm” that should now contain the following two hidden fields: <input type="hidden" name="custom_mygroups" value="1234,1235"/> whereas 1234,1235 should be the two group-ids
    • Affected Branches:
      MOODLE_31_STABLE, MOODLE_32_STABLE, MOODLE_33_STABLE, MOODLE_34_STABLE
    • Fixed Branches:
      MOODLE_34_STABLE
    • Pull Master Branch:
      MDL-55358-master

      Description

      It will be useful to have support for group variables so we can get a list of groups(groupings) the user is member of with LTI launch request.

      LIS Group Variables
      https://www.imsglobal.org/specs/ltiv2p0/implementation-guide#toc-76

      Relevant variables are probably:
      Group.shortDescription
      Group.sourcedId

      Current capabilities missing group variables:
      https://github.com/moodle/moodle/blob/5a1728df39116fc701cc907e85a638aa7674f416/mod/lti/locallib.php#L2148

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              davidknu David Knuplesch
              Reporter:
              pablop Pablo
              Peer reviewer:
              Damyon Wiese
              Integrator:
              Eloy Lafuente (stronk7)
              Tester:
              Ankit Agarwal
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
              Votes:
              20 Vote for this issue
              Watchers:
              8 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                13/Nov/17