[Building Sakai] Web service to get list of all users

Steve Swinsburg steve.swinsburg at gmail.com
Wed Aug 24 16:31:28 PDT 2011


You could create a bit of code that listens for the user.login event and then checks if the user is a member of the site, and if not, adds them. Check out the java.util.Observer interface, the Events that Sakai publishes are Observable.

cheers,
Steve






On 25/08/2011, at 12:58 AM, Jez Cope wrote:

> Is there a web service to get a list of all users for all sites on a 
> Sakai instance?
> 
> I'm aiming to set up a cron job which will join everyone who actually 
> uses our Sakai to a "Help & support" site. We have both local and LDAP 
> users, so I can't just use the list of local users, and not every user 
> in LDAP uses Sakai.
> 
> I had previously been using the autojoin tool for this (so people could 
> click on a link and get straight to Help & Support), but I'd like to be 
> able to send announcements to all users, and at present only people 
> who've used the autojoin link would receive them.
> 
> Cheers,
> Jez
> -- 
> Jez Cope <http://people.bath.ac.uk/jc619>, ICT Project Manager
> Centre for Sustainable Chemical Technologies
> <http://www.bath.ac.uk/csct>
> University of Bath
> Tel: +44(0)1225 385827
> 
> _______________________________________________
> 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"



More information about the sakai-dev mailing list