cancel
Showing results for 
Search instead for 
Did you mean: 

Creation of sites and site finder

srik
Champ in-the-making
Champ in-the-making
Hi Team,

I am using alfresco enterprise 4.1 , I am stuck up with a problem like I have 4 groups g1,g2,g3,g4.

How to set permission like only group g1 and g2 can create sites as well as they can view the site finder in the header in alfresco share,group g3 and g4 should not have this access .Can you please help me with the configuration as I am new to the alfresco .


Thanks
Srikanth S
5 REPLIES 5

eswbitto
Confirmed Champ
Confirmed Champ
The way that I did it was I opened up the public-services-security-context.xml

Search for

org.alfresco.service.cmr.site.SiteService.createSite=ACL_ALLOW

Replace with

org.alfresco.service.cmr.site.SiteService.createSite=ACL_METHOD.ROLE_ADMINISTRATOR


From there log in as the default admin account go to Admin tools…Groups…browse groups and then look at the administrator group…

From there you can add either people or subgroups or create them.

kart
Champ in-the-making
Champ in-the-making
Alternatively, instead of giving the site creation permission only to administrator, you could create a group (let say we call this group CAN_CREATE_SITE ).

In public-services-security-context.xml
Replace 
org.alfresco.service.cmr.site.SiteService.createSite=ACL_ALLOW

with
org.alfresco.service.cmr.site.SiteService.createSite=ACL_METHOD.GROUP_CAN_CREATE_SITE


This way you have additional control to which users you allow to create sites.

anshu_kumar
Star Contributor
Star Contributor
Hi,

I tried both ways and when I restarted the server, I got the following error. Alfresco does not work.

Is there any thing that I missed or skipped. I am using Alfresco Enterprise 4.1.5

***********START************

13:13:57,839 ERROR [org.springframework.web.context.ContextLoader] Context initialization failed
java.lang.ArrayIndexOutOfBoundsException: 1
   at org.alfresco.module.org_alfresco_module_rm.security.RMMethodSecurityPostProcessor.convertToMap(RMMethodSecurityPostProcessor.java:192)
   at org.alfresco.module.org_alfresco_module_rm.security.RMMethodSecurityPostProcessor.merge(RMMethodSecurityPostProcessor.java:146)
   at org.alfresco.module.org_alfresco_module_rm.security.RMMethodSecurityPostProcessor.postProcessBeanFactory(RMMethodSecurityPostProcessor.java:97)
   at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:663)
   at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:653)
   at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:407)
   at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)
   at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)
   at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
   at org.alfresco.web.app.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:63)
   at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
   at org.apache.catalina.core.StandardContext.start(StandardContext.java:4342)
   at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
   at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
   at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
   at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:627)
   at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553)
   at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488)
   at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)
   at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
   at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
   at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
   at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
   at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
   at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
   at org.apache.catalina.core.StandardService.start(StandardService.java:516)
   at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
   at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)

***********END**************

kart
Champ in-the-making
Champ in-the-making
Hi,

I'm not yet familiar enough with Alfresco to help you with the problem you have. I just installed Alfresco Community 4.2.e few days ago using the Linux installer alfresco-community-4.2.e-installer-linux-x64.bin and the modification above is working for me.

anshu_kumar
Star Contributor
Star Contributor
Okay.
Maybe it has got to do with Enterprise and Community edition if I did it right.
I'll check and do it again.

Thanks though for replying.