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

LIS Group Variables support in LTI

XMLWordPrintable

    • MOODLE_31_STABLE, MOODLE_32_STABLE, MOODLE_33_STABLE, MOODLE_34_STABLE
    • MOODLE_34_STABLE
    • MDL-55358-master
    • 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

      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

            davidknu David Knuplesch
            pablop Pablo
            Damyon Wiese Damyon Wiese
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Ankit Agarwal Ankit Agarwal
            Votes:
            20 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.