AnsweredAssumed Answered

adding additional default alfresco group

Question asked by pmverma on Aug 14, 2012
Latest reply on Aug 16, 2012 by pmverma
Hi everbody,I have a little problem.
As we know Alfresco comes up with two default Groups, ALFRESCO_ADMINISTRATORS and EMAIL_CONTRIBUTERS.
I would like to add myCustomGroup to that group to be a default Group.
so I add the following to my alfrescoAuthorityStore.xml
<cm:authorityContainer view:childName="cm:GROUP_MY_CUSTOM_GROUP">
               <view:aspects>
                  <sys:referenceable />
               </view:aspects>
               <view:properties>
                  <cm:name>GROUP_MY_CUSTOM_GROUP</cm:name>
                  <sys:node-uuid>GROUP_MY_CUSTOM_GROUP</sys:node-uuid>
                  <cm:authorityName>GROUP_MY_CUSTOM_GROUP</cm:authorityName>
               </view:properties>
            </cm:authorityContainer>

and add the following to alfrescoAuthorityStoreDefaultMembers.xml
.
.
.
</view:reference>
      <view:reference view:pathref="${system.authorities_container.childname}/cm:GROUP_MY_CUSTOM_GROUP">
      <view:associations>
         <cm:member>
            <view:reference view:pathref="${system.people_container.childname}/cm:${alfresco_user_store.mycustomusername}"
               view:childName="cm:${alfresco_user_store.mycustomusername}" />
         </cm:member>
      </view:associations>
   </view:reference>
<view:reference view:pathref="${system.zones_container.childname}/cm:AUTH.ALF">
      <view:associations>
        .
        .
        .
          <cm:inZone>
            <view:reference view:pathref="${system.people_container.childname}/cm:${alfresco_user_store.mycustomusername}"
               view:childName="cm:${alfresco_user_store.mycustomusername}" />
         </cm:inZone>
      </view:associations>
   </view:reference>
   <view:reference view:pathref="${system.zones_container.childname}/cm:APP.DEFAULT">
      <view:associations>
        .
………
………
            <view:reference view:pathref="${system.people_container.childname}/cm:${alfresco_user_store.mycustomusername}"
               view:childName="cm:${alfresco_user_store.mycustomusername}" />
         </cm:inZone>
      </view:associations>
   </view:reference>
and add to system.xml the followings

<cm:person view:childName="cm:${alfresco_user_store.mycustomusername}">
                        <view:acl>
                           <view:ace view:access="ALLOWED">
                              <view:authority>${alfresco_user_store.mycustomusername}</view:authority>
                              <view:permission>Read</view:permission>
                           </view:ace>
                        </view:acl>
                        <cm:userName>${alfresco_user_store.mycustomusername}</cm:userName>
                        <cm:firstName>My Custom User Name</cm:firstName>
                        <cm:lastName></cm:lastName>
                        <cm:email></cm:email>
                        <cm:organizationId></cm:organizationId>
                        <cm:homeFolder>/${spaces.company_home.childname}/${spaces.user_homes.childname}</cm:homeFolder>
                        <cm:homeFolderProvider>bootstrapHomeFolderProvider</cm:homeFolderProvider>
                        <cm:sizeCurrent>0</cm:sizeCurrent>
                    </cm:person>
after that I build and restart server but it does not show my added MY_CUSTOM_GROUP.

what am I missing?

I am developing code of community 4.0.0 c

thanks in advance!

Outcomes