[Building Sakai] Workspace id ignores provided user id ?

David Horwitz david.horwitz at uct.ac.za
Wed Jul 27 05:56:25 PDT 2011


Is there a reason you are setting the userId == eid? I would recommend 
you leave the id null and let Sakai generate the internal Id. This gives 
you flexibility down the line, for instance this enabled us to rename 
accounts when the University desided to change all staff logins ...


D

On 07/27/2011 02:48 PM, David Wafula wrote:
> Hi all,
> Am creating a user as follows:
>
> userDirectoryService.addUser(userId, userId, givenName, surname, 
> email, null, type, null);
>
>
> so in this case i expect  workspace id to be the same as userid. Not 
> happening.
> The workspace id is autogenerated.
>
> This becomes a problem if i try to programmatically modify this 
> workspace using the user id i supplied (specifically, i get 
> permmissions exception).
>
> Best practice here?
> -- 
> David Wafula
>
>
> _______________________________________________
> 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/20110727/ad4008ae/attachment.html 


More information about the sakai-dev mailing list