Configuring Roles in 2.1

Vishwak Rajgopalan

I am also using the Sakai Scheduler tool to run batch jobs that add courses to Sakai. I run the Course Job after logging in as admin. After I complete running my course batch job I notice that "Sakai Adminsitartor (admin) " gets automatically added as an "instructor" to each of the course sites that were created.

Nuno Fernandes replies:

You need to add other Instructors to site and in the end, remove Admin from site:

AuthzGroup realmEdit = AuthzGroupService.getAuthzGroup("/site/" + site.getId());
realmEdit.addMember(instructorId, ROLE_INSTRUCTOR, true, false);
(...)
realmEdit.removeMember("admin");

Note: if there is no other Instructor, Admin will not be removed.

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.