[Building Sakai] adding the same users to different classes

Paul Dagnall dagnalpb at notes.udayton.edu
Mon Nov 1 10:20:54 PDT 2010


Bruce
I've attached a perl script that I use to do exactly what you're asking. You
may also need to read this page about using Sakai web services:
http://confluence.sakaiproject.org/display/WEBSVCS/How+to+use+the+Sakai+Web+Services
It's an excellent resource. (Thanks Steve!)

To use the script you'll need the site id's (not site title) saved into a
csv file with a comma and line break after each site id. Get the list of
site id's by querying the database.

Let me know if you have any trouble.

Paul Dagnall
Web Developer
University of Dayton


On Mon, Nov 1, 2010 at 12:02 PM, <bruceballou at olk12.com> wrote:

>
>  Hello Paul,
>
> We are on Sakai 2.6.3.
>
> Does your script work on this version? And is it available to the
> community?
>
> Thanx,
>
> Bruce
>
> -------- Original Message --------
> Subject: Re: [Building Sakai] adding the same users to different
> classes
> From: Paul Dagnall <dagnalpb at notes.udayton.edu>
> Date: Mon, November 01, 2010 10:22 am
> To: bruceballou at olk12.com
> Cc: sakai-dev at collab.sakaiproject.org,
> sakai-user at collab.sakaiproject.org, production at collab.sakaiproject.org,
> support at olk12.com
>
> Bruce
> Depending on your version the Sakai Web Services can handle this very
> nicely. We create a list of the sites and call the addMemberToSiteWithRole()
> web service from a script.
>
> Paul Dagnall
> Web Developer
> University of Dayton
>
>
> On Mon, Nov 1, 2010 at 9:54 AM, <bruceballou at olk12.com> wrote:
>
>>
>> Hello All,
>>
>> We are looking for a way to add one user to many classes without having to
>> go to each class, ie; science department head needs to be added to all
>> science classes (numberings in the hundreds....)
>>
>> Your help as always is greatly appreciated.
>>
>> Thanx,
>>
>> Bruce
>>
>> _______________________________________________
>> sakai-dev mailing list
>> sakai-dev at collab.sakaiproject.org
>> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>>
>> TO UNSUBSCRIBE: send email to
>> sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of
>> "unsubscribe"
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20101101/3606a41a/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: add_user_to_sites.pl
Type: application/x-perl
Size: 1234 bytes
Desc: not available
Url : http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20101101/3606a41a/attachment.bin 


More information about the sakai-dev mailing list