[Building Sakai] Tool adds Users to Sites: fails with "role undefined" error although role is correct

Steve Swinsburg steve.swinsburg at gmail.com
Sun Dec 15 15:03:00 PST 2013


Hi Michael,

Just a thought but have you tried it in lower case "student" ?

cheers,
Steve


On Sat, Dec 14, 2013 at 12:13 PM, Michael Mertins <
mertins at zedat.fu-berlin.de> wrote:

> Hi,
>
> I'm writing a tool that adds Student users with type "registered"
> automatically to sites.
>
> The sites have role "Student" in their roles and as JoinerRole.
>
> Still,
>
>  site.addMember(userid, "Student", true, false);
>
> gives me the Role undefined error. Can this problem be related to Groups,
> Authz? Do I need to set the user-type to Student? I've also checked the
> Webservices and tried to replicate the problem locally but ran out of
> ideas.
>
> Anyone knows where I could look?
>
> Best,
>
>
> Michael
>
> _______________________________________________
> 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/20131216/d96aa392/attachment.html 


More information about the sakai-dev mailing list