Uploaded image for project: 'LAMS Development'
  1. LAMS Development
  2. LDEV-2747

An API to create users in bulk from an external system

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.4
    • Fix Version/s: 2.4
    • Component/s: General, Moodle Integration
    • Labels:
      None

      Description

      As you might remember we have a RegisterAction.java in lams_central:

      http://code.lamsfoundation.org/fisheye/browse/lams/lams_central/src/java/org/lamsfoundation/lams/webservice/RegisterAction.java

      What I would like this to do is to work in the case we want to create a whole bunch of users remotely (from a server) we are able to do this using the addUserToGroupLessons.

      Now here's a few options that I will like to have available (on top of what this does already -ie: email, password creation, join lessons etc):

      1) CourseId is optional

      For the other system point of view, I should be able just to add the users into LAMS as users without a course or reference to lessons. So
      just add users, but don't put them into a course

      2) LessonId is an option

      If I want to add a whole bunch of users into a lesson, if I pass the lessonI, I should be able to add them all to that one lesson(s). Of
      course this will add the user to their respective LAMS courses where these lessons live (right?).

        Activity

        Show
        ernieg Ernie Ghiglione added a comment - This is being implemented here: http://code.lamsfoundation.org/fisheye/changelog/lams?cs=lams2_3_release:andreyb:20111024170044
        Hide
        ernieg Ernie Ghiglione added a comment -
        Documentation JIRA LDEV-2720
        Show
        ernieg Ernie Ghiglione added a comment - Documentation JIRA LDEV-2720
        Hide
        dronych Andrey Balan added a comment -
        done
        Show
        dronych Andrey Balan added a comment - done
        Hide
        ernieg Ernie Ghiglione added a comment -
        Authentication doesn't work with SHA1 algorithm on the following (all in lower case) [ datetime + username + serverId + serverKey ]
        Show
        ernieg Ernie Ghiglione added a comment - Authentication doesn't work with SHA1 algorithm on the following (all in lower case) [ datetime + username + serverId + serverKey ]
        Hide
        ernieg Ernie Ghiglione added a comment -
        This registration must also contain an option to use the default server prefix or not. So adding userPrefix parameter to these methods
        Show
        ernieg Ernie Ghiglione added a comment - This registration must also contain an option to use the default server prefix or not. So adding userPrefix parameter to these methods
        Hide
        ernieg Ernie Ghiglione added a comment -
        It would be good if we can have a config key for this so we can enable or disable it when need be
        Show
        ernieg Ernie Ghiglione added a comment - It would be good if we can have a config key for this so we can enable or disable it when need be
        Hide
        ernieg Ernie Ghiglione added a comment -
        All good now
        Show
        ernieg Ernie Ghiglione added a comment - All good now
        Hide
        ernieg Ernie Ghiglione added a comment -
        All working... done with this. Thanks Andrey
        Show
        ernieg Ernie Ghiglione added a comment - All working... done with this. Thanks Andrey
        Show
        ernieg Ernie Ghiglione added a comment - Wiki documentation page: http://wiki.lamsfoundation.org/display/lams/Server-to-server+registration+and+deregistration+service

          People

          • Assignee:
            ernieg Ernie Ghiglione
            Reporter:
            ernieg Ernie Ghiglione
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development