[Building Sakai] Use Sakai API to add members to site
Phuc Bui
phucbui2006 at yahoo.com.vn
Wed Jul 15 06:47:29 PDT 2009
Dear all,
I use this API org.sakaiproject.site.api.Site to add members to site
-------------------------------------------
addMember
void addMember(
<http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html> String
userId,
<http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html> String
roleId,
boolean active,
boolean provided)
Add a member to the AuthzGroup.
Parameters:
userId - The user.
role - The role name.
active - The active flag.
provided - If true, from an external provider.
-----------------------------------------
But when I used it, I got following warning, though I called
site.addMember(uid, roleId, true, true)
------------------------------------
WARN: refreshAuthzGroup: cannot find eid for user: nluthuyntt (2009-07-15
20:25:
46,064
http-8080-Processor23_org.sakaiproject.authz.impl.DbAuthzGroupService)
WARN: refreshAuthzGroup: cannot find eid for user: nlu05130095 (2009-07-15
20:25
:46,065
http-8080-Processor23_org.sakaiproject.authz.impl.DbAuthzGroupService)
WARN: refreshAuthzGroup: cannot find eid for user: nlu05130030 (2009-07-15
20:25
:46,066
http-8080-Processor23_org.sakaiproject.authz.impl.DbAuthzGroupService)
WARN: refreshAuthzGroup: cannot find eid for user: nlu05130148 (2009-07-15
20:25
:46,068
http-8080-Processor23_org.sakaiproject.authz.impl.DbAuthzGroupService)
WARN: refreshAuthzGroup: cannot find eid for user: nlu05130072 (2009-07-15
20:25
:46,069
http-8080-Processor23_org.sakaiproject.authz.impl.DbAuthzGroupService)
-----------------------------------
I have implemented UserDirectoryProvider to read user's data from external
database and I can log in by those id (such as nluthuyntt, nlu05130095 .)
What should I do more ?
Thanks,
Phuc Bui
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20090715/cbd4216c/attachment.html
More information about the sakai-dev
mailing list