[Using Sakai] Reals, new roles and permissions.
Steve Swinsburg
s.swinsburg at lancaster.ac.uk
Tue Apr 28 01:42:28 PDT 2009
Hi Mike,
There is a copyRole() web service which you can use to copy and
synchronise roles from one site to another. I create roles in a
template site, then iterate over the sites and copy them to each.
http://confluence.sakaiproject.org/confluence/x/qoBuAQ
Get the copyRole web service and put it into SakaiScript.jws, rebuild
and redeploy the /webservices project, then you can use the attached
perl script to sync up the roles from the template site to each site
you want.
cheers,
Steve
---
Steve Swinsburg
Portal Systems Developer
Centre for e-Science
Lancaster University
Lancaster
LA1 4YT
email: s.swinsburg at lancaster.ac.uk
phone: +44 (0) 1524 594870
On 28/04/2009, at 9:13 AM, Mike Ozornin wrote:
> Hello all.
>
> We have in all sites two roles: access and maintain, but going to
> add some roles and some to change. How can I add the same roles to
> the all site, without creating this roles onto each of them.
> I know about !site.helper realm and tryied the next:
> — created new role «lead tutor» with permissions onto site.helper
> (it didn't appear in the sites)
> — I created a new role «lead tutor» onto the «Site #1», hopping
> that site.realm override it. (It didn't overrided).
>
> But when I overrided role «maintain», have created with the site —
> it worked ok.
>
> Is there any simple way to add some roles to all created sites?
>
> Thanks forward,
> Mike Ozornin.
> _______________________________________________
> sakai-user mailing list
> sakai-user at collab.sakaiproject.org
> http://collab.sakaiproject.org/mailman/listinfo/sakai-user
>
> TO UNSUBSCRIBE: send email to sakai-user-unsubscribe at collab.sakaiproject.org
> with a subject of "unsubscribe"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-user/attachments/20090428/d3d29fab/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sync-roles-in-sites.pl
Type: text/x-perl-script
Size: 1459 bytes
Desc: not available
Url : http://collab.sakaiproject.org/pipermail/sakai-user/attachments/20090428/d3d29fab/attachment.bin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-user/attachments/20090428/d3d29fab/attachment-0001.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2437 bytes
Desc: not available
Url : http://collab.sakaiproject.org/pipermail/sakai-user/attachments/20090428/d3d29fab/attachment-0001.bin
More information about the sakai-user
mailing list