[Deploying Sakai] Adding list of users: API needed?

Matthew De Leon smidwap at gmail.com
Thu Jan 14 16:02:54 PST 2010


Steve, this is perfect! Thanks.

Matt

On Thu, Jan 14, 2010 at 7:01 PM, Steve Swinsburg
<steve.swinsburg at gmail.com>wrote:

> Hi Matthew,
>
> I'd suggest two methods, the first one to create the list of user accounts,
> and the second to link them to sites. Both would accept the XML doc. Then
> your XML that loads them into the site only needs to have their username.
>
> Alternatively, you can use the existing services to do this and just
> iterate over the list of users via a Perl script:
>
> https://source.sakaiproject.org/contrib//lancaster.ac.uk/webservice-scripts/
>
> It will be a bit slower this way since its a number of SOAP calls rather
> than just a couple. But unless your dataset is huge it won't be that
> noticeable, performance wise.
>
> public String addNewUser( String sessionid, String eid, String firstname, String lastname, String email, String type, String password) throws AxisFault
>
> public String addMemberToSiteWithRole(String sessionid, String siteid, String eid, String roleid) throws AxisFault
>
>
> Note: If you have Sakai setup via LDAP or some other provider you don't
> need them to have accounts first, you can just add them to a site and the
> service looks them up by username and makes the connection.
>
> cheers,
> Steve
>
>
> On 15/01/2010, at 10:49 AM, Matthew De Leon wrote:
>
> Steve, looks good except that I need to add users that aren't already in
> the system. Would adding a few lines of code do that? e.g. using an
> addMember function and then grabbing the user's id before putting them into
> a site?
>
> Matt
>
> On Thu, Jan 14, 2010 at 6:27 PM, Steve Swinsburg <
> steve.swinsburg at gmail.com> wrote:
>
>> Hi Matt,
>>
>> I wrote a webservice that takes an appropriately formatted XML file and
>> loads users into a site, this might be of use:
>> http://bit.ly/7RRPaZ
>>
>> It can easily be adapted to create accounts with a modified schema since
>> the XML parsing is there already.
>>
>> cheers,
>> Steve
>>
>> On 15/01/2010, at 7:36 AM, Matthew De Leon wrote:
>>
>> Hi all,
>>
>> I am searching for a method to add a list of users from an existing
>> source, probably a simple comma-delimited file containing userid, name, and
>> email. There does not seem to be a built-in method on the administration
>> panel for this. Do I need to use sakai's API to create a script to add
>> members? If so, can someone point me to the documentation for it?
>>
>> Thanks,
>>
>> Matt
>> _______________________________________________
>> production mailing list
>> production at collab.sakaiproject.org
>> http://collab.sakaiproject.org/mailman/listinfo/production
>>
>> TO UNSUBSCRIBE: send email to
>> production-unsubscribe at collab.sakaiproject.org with a subject of
>> "unsubscribe"
>>
>>
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/production/attachments/20100114/ef64c9b8/attachment.html 


More information about the production mailing list