cancel
Showing results for 
Search instead for 
Did you mean: 

Limit site creation access to Admins only (5.0 Community)

chrisharris
Champ in-the-making
Champ in-the-making
If anyone can help me get it to where only myself and other admins (and possibly site managers) have the ability to create sites and Consumer, Contributor and Collaborators could not that would be grand.
10 REPLIES 10

hardik1512
Star Contributor
Star Contributor
Hello,

Follow the steps mentioned in this blog post.
http://hardikkacholia.blogspot.in/2015/09/customizing-alfresco-50-share-header.html

This will help you to hide Create site menu from non-admin users.

Note :-  If the war files are exploded again, then these changes might get lost. So either you should keep backup OR you can use tomcat\shared\classes\alfresco\web-extension path instead of
tomcat\webapps\share\WEB-INF\classes\alfresco\web-extension.

angelborroy
Community Manager Community Manager
Community Manager
Use Jeff Potts addon: https://github.com/jpotts/share-site-creators
Hyland Developer Evangelist

I was looking at that but was not sure how to install it 😕

angelborroy
Community Manager Community Manager
Community Manager
If you are using Alfresco 5.0.d, you can use compiled AMPs artifacts at https://github.com/angelborroy/share-site-creators/releases
Hyland Developer Evangelist

Where do i put those files? Sorry I'm new to all this.

Hi friend, here is how to proceed : (alfresco_root being the convention to name your alfresco installation folder like C:\Alfresco or opt/Alfresco)

1- Shut down your Alfresco server and make a backup of you WAR files in Alfresco_root/tomcat/webapps (share.war ; alfresco.war)

2- Copy share-site-creators-repo.amp in Alfresco_root/amps

3- Copy  share-site-creators-share.amp in Alfresco_root/amps_share

4- Install AMPs by going to Alfresco_root/bin

for Windows : execute the file apply_amps.bat
for Linux : execute the file apply_amps.sh

5- Let the script run,(you'll be eventually prompted to press a key) it will automatically install your AMPs.

6- When it finishes, youll be informed that your AMPs were applied successfully. In the same folder, execute clean_tomcat.bat or clean_tomcat.sh depending on the OS youre using (this prepares the WARs to be redeployed at tomcat restart).

7- Start your Alfresco server and follow the instructions supplied with the extension to use it.

8- Enjoy!

angelborroy
Community Manager Community Manager
Community Manager
Read "Install the AMPs section" at https://github.com/jpotts/share-site-creators
Hyland Developer Evangelist

Alright I got it installed and it successfully has hidden the create sites.
My problem now is even after creating GROUP_SITE_CREATORS and adding ALFRESCO_ADMINISTRATORS I cannot create sites still as the admin.
Not sure if I am missing something 😕

create the group simply as SITE_CREATORS, Alfresco adds "GROUP_" on its own i think

Edit: quoting the install intructions from https://github.com/jpotts/share-site-creators:

"By default, the group the module looks for must have an ID of "GROUP_SITE_CREATORS". The display name can be anything. When you create the group you do not specify "GROUP_"–Alfresco will prepend that for you."