cancel
Showing results for 
Search instead for 
Did you mean: 

Bootstrap Sites with Group-based Membership

pjaromin
Champ on-the-rise
Champ on-the-rise
I'm attempting to create a few bootstrap sites. I've been working with Will Abson's share-import-export python scripts and reviewing the sample bootstrap site/patch. I've created my own bootstrap contexts and ACPs, but It doesn't appear that there's a built-in way to setup site membership based on groups instead of individual members.

My use case requires group-based membership, so I'm looking for what I need to do to make this happen without the need to manually configure membership for each site following bootstrap.

I can see that when a new site is created, a new site-specific group is also created. Can anyone provide me with details about the specific things I'd need to do (i.e. create a new site-specific group, etc.) to write my own extension to the SiteLoadPatch that will meet my needs? Or is there some other existing process I could/should use to accomplish this? Might it be easier to write an external script that does this by calling existing Share APIs instead? Please note that this is not a one-time install - I will need to do this a number of times over an extended period of time, so manually configuring these permissions will become tedious and error prone.

Thanks!

-Patrick
3 REPLIES 3

pjaromin
Champ on-the-rise
Champ on-the-rise
Because patches are applied *before* bootstrapping my custom users and groups, it turns out I can't use a patch for this anyway. So what I've done is allow the standard Site patch to create the sites (from the export) and add initial the "admin" user to them.

Then I added my own (very simple) code to the module that adds the authorities to the sites upon bootstrap using a map of maps {siteShortName: {authority: role}}

So turns out the solution's pretty simple.

-Patrick

hazprod
Champ in-the-making
Champ in-the-making
Hi Patrick,

I'm trying to implement the same solution. I didn't find much information on this.
I would really appreciate if you could share more information and add sample code.

Thanks,
Hazprod

warrior1603
Champ in-the-making
Champ in-the-making
hi pjaromin,
I'm working at the same issue as you, can you please provide more informations and the soure code, thanks in advance