cancel
Showing results for 
Search instead for 
Did you mean: 

Disable create site

majed_ali
Champ in-the-making
Champ in-the-making
Dear All;
How I can revoke create site permission from users??

Thank's in advanced.
8 REPLIES 8

eswbitto
Confirmed Champ
Confirmed Champ
You can revoke the site permission to the admin account only. Then from there the alfresco admin can give permissions to what users you want to give manager access to.

Go to webapps/alfresco/WEB-INF/classes/alfresco/public-services-security-context.xml

Change from

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

to

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

majed_ali
Champ in-the-making
Champ in-the-making
Thank you ….
it's working … Smiley Happy

gprade
Champ in-the-making
Champ in-the-making
Hello,

i do this on a Alfresco 4.2.c Community Edition and restarted the whole server. But it dont work. As a normal user i can create a site. What can i do or where must i look for a the error?

GPrade

eswbitto
Confirmed Champ
Confirmed Champ
Can you go into more detail as to the steps you take? The instructions above even on 4.2.c should work.

gprade
Champ in-the-making
Champ in-the-making
Ok, we use 4.2.c on an Ubuntu 12.04 LTS. I followed the instruction on http://wiki.alfresco.com/wiki/Site_Service#Controlling_site_creation_permissions_in_Alfresco_3.4.6_a... an changed org.alfresco.service.cmr.site.SiteService.createSite=ACL_ALLOW in org.alfresco.service.cmr.site.SiteService.createSite=ACL_METHOD.ROLE_ADMINISTRATOR. I restart the server (after save the file) and try to create a site with a normal user, not admin. I can create a site and i see nor errors in the logs. I dont know what i have to change. I dont change or make the steps from the wiki "For Alfresco 3.4.6 and possibly other later versions, two changes need to be made in addition to the above change ……….". I only change the ACL, because there is written that it is enough. Sorry, for my bad english. What should i write more, so you can help?

Best regards, Gerhard Prade

eswbitto
Confirmed Champ
Confirmed Champ
I would make sure the user you are using is not part of the adminitrator group in Alfresco. Plus users can go to create site and put in all the information, but it won't actually take. Can you actually get past this step?

gprade
Champ in-the-making
Champ in-the-making
The user is not in the alfresco_administrators group. And he can create and edit the site.

eswbitto
Confirmed Champ
Confirmed Champ
If you have a vanilla install of Alfresco and haven't done much changes other than the above for the site creation then you should be good to go. I'd recommend installing Alfresco again. By all accounts it should be working.