[Building Sakai] How to get current user is role

Steve Swinsburg steve.swinsburg at gmail.com
Mon Jul 16 21:34:13 PDT 2012


Hi,

Users can have many roles, the role is site specific. However users can have only one type.

If you are after the role that a user has in a site, get the AuthzGroup for a site then you can get all Members or a specific Member, and from there their Role.

cheers,
Steve


On 17/07/2012, at 1:43 PM, Zoljargal Munkhjargal wrote:

> How to get current(logged) user is role? In sakai project, there were several roles such as admin, instructor, teaching assist and student. 
> 
> I found only isSuperUser() function while I was modifying sakai sample project. 
>     
> public boolean isSuperUser() {
>         return securityService.isSuperUser();
> }
> 
> -- 
> 
> _______________________________
> 
> ZOLJARGAL Munkhjargal
>  
> Lecturer
> School of Information Technology 
> National University of Mongolia 
> 
> Tel:          +976 77307730 3307
> Email:      zoljargal.m at gmail.com  
> Website:  www.sit.num.edu.mn 
> 
> 
> _______________________________________________
> 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/20120717/278ce440/attachment.html 


More information about the sakai-dev mailing list