cancel
Showing results for 
Search instead for 
Did you mean: 

User Creation

cpfuser
Champ in-the-making
Champ in-the-making
Can i create an alfresco user without log-in with admin credentials but by similuating user creation functionalities without admin access.
If yes, can anyone please tell me how this can be done.

Thanks.
1 REPLY 1

rliu
Champ in-the-making
Champ in-the-making
To the best of my knowledge in Labs 3.0, you have to override the Spring bean definition "authorityService".

Here is a snippet of what you'll need to override the definition:


    <bean id="authorityService" class="org.alfresco.repo.security.authority.AuthorityServiceImpl">
        <property name="authenticationComponent">
            <ref bean="authenticationComponent" />
        </property>
        <property name="personService">
            <ref bean="personService" />
        </property>
        <property name="nodeService">
            <ref bean="nodeService" />
        </property>
        <property name="tenantService">
            <ref bean="tenantService"/>
        </property>
        <property name="authorityDAO">
            <ref bean="authorityDAO" />
        </property>
        <property name="permissionServiceSPI">
            <ref bean="permissionServiceImpl" />
        </property>
        <!–                                                                  –>
        <!– A list of users with admin rights.                               –>
        <!–                                                                  –>
        <!– By default this includes:                                        –>
        <!–    admin (the user name of default alfresco admin user)          –>
        <!–    administrator (the windows default admin user)                –>
        <!–                                                                  –>
        <!– This assumes that user names are not case sensitive.             –>
        <!–                                                                  –>
        <property name="adminUsers">
            <set>
                <!–ADMIN IS REQUIRED IN ORDER TO INVOKE VARIOUS SERVICES–>
                <value>admin</value>
                <value>ADDITIONAL_USER_ID</VALUE>
          </set>
        </property>
    </bean>

Unless the authority service in Alfresco 3.2 Community has structurally changed, this should allow other users to have access to the administrator console.