cancel
Showing results for 
Search instead for 
Did you mean: 

Bootstrapping populated user groups

scitrx
Champ in-the-making
Champ in-the-making
Hi,

I tried to bootstrap a site. Unfortunately I had quite some issues with providing the required groups for the site. I found this <a href="https://issues.alfresco.com/jira/browse/MNT-1829">link</a> which was quite useful so far. Nevertheless, I couldn't manage to bootstrap the admin user into a group I created. I tried the following:




            <cm:authorityContainer view:childName="cm:GROUP_site_my-site_SiteManager">
               <view:associations>
                  <cm:member>
                     <view:reference view:pathref="/sys:system/sys:people/cm:admin" view:childName="cm:admin" />
                  </cm:member>
               </view:associations>
               <view:aspects>
                  <sys:referenceable />
               </view:aspects>
               <view:properties>
                  <cm:authorityName>GROUP_site_my-site_SiteManager</cm:authorityName>
               </view:properties>
            </cm:authorityContainer>


I try the same approach to create sub-groups. The weird thing is, when I browse the group (More -> Groups) I can see all of my created groups, even the one above populated with the admin user. But the properties I define (here: cm:authorityName) are not created, which causes an exception in the NodeBrowser as well as the Repository view (of the header).


Any help will be apprececiated.

Many thanks,
Daniel




3 REPLIES 3

meiko
Champ in-the-making
Champ in-the-making
Hi,

I've got the same problem.
Did you find a solution?

Thank you,
Meiko

meiko
Champ in-the-making
Champ in-the-making
ok, looks like a bug,
found two possible workarounds:

1. define view:associations separately


    <view:reference view:pathref="${system.authorities_container.childname}/cm:GROUP_site_my-site_SiteManager">
        <view:associations>
            <cm:member>
                <view:reference view:pathref="sys:people/cm:admin" view:childName="cm:admin" />
            </cm:member>
        </view:associations>
    </view:reference>


2. change the order of child tags (aspects -> properties -> associations)


<cm:authorityContainer view:childName="cm:GROUP_site_my-site_SiteManager">
               <view:aspects>
                  <sys:referenceable />
               </view:aspects>
               <view:properties>
                  <cm:authorityName>GROUP_site_my-site_SiteManager</cm:authorityName>
               </view:properties>
<view:associations>
                  <cm:member>
                     <view:reference view:pathref="/sys:system/sys:people/cm:admin" view:childName="cm:admin" />
                  </cm:member>
               </view:associations>
            </cm:authorityContainer>

meiko
Champ in-the-making
Champ in-the-making