cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco 3.4, where is adminUser property?

gabri124
Champ in-the-making
Champ in-the-making
Hello, I have started working with Alfresco and I have update a project Alfresco 2.2 to 3.4 Community.

I'm trying to configure Authority-services-context.xml just I have in old project. In that project I have the property "adminUsers" but in 3.4 i haven't got it. I code the property but it returns me and error about bean configuration. The lib that has this bean configuration is a .class file and I can't edit it. Can you help me?

GRAVE: Excepción enviando evento inicializado de contexto a instancia de escuchador de clase org.alfresco.web.app.ContextLoaderListener

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'authorityService' defined in class path resource [alfresco/authority-services-context.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'adminUsers' of bean class [org.alfresco.repo.security.authority.AuthorityServiceImpl]: Bean property 'adminUsers' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)

… 40 more

How do i can resolve this? Thank's
7 REPLIES 7

mrogers
Star Contributor
Star Contributor
On more recent versions of Alfresco you just add your admin users to the group ALFRESCO_ADMINISTRATORS.  There's no need to change xml config.

gabri124
Champ in-the-making
Champ in-the-making
On more recent versions of Alfresco you just add your admin users to the group ALFRESCO_ADMINISTRATORS.  There's no need to change xml config.

Hi Mrogers, I dont understand, the last version has in this file Authority-services-context.xml define adminUsers property? Or It has been changed for Alfresco_administrator?

I'm downloading the last version Alfresco Community, thanks for quickly answer.

gabri124
Champ in-the-making
Champ in-the-making
I have downloaded the last version Alfresco Community 3.4 d. The Authority-service-context.xml file explains :

<!–                                                                          –>
<!– This implementation supports the identification of users as admin users. –>
<!– It also supports groups and allows groups and users to be arranged into  –>
<!– hierarchies.                                                             –>
<!–                                                                          –>


But I can't see the AdminUsers property, must i define inside of adminGroups? I need this property that it's reference in the project. Or Must i define the user inside adminGroups? AnyExample? I am apologize for too many question but i am newbee in Alfresco World
 <!–                                                                  –>
        <!– A list of groups with admin rights.                              –>
        <!–                                                                  –>
        <property name="adminGroups">
            <set>
                <value>ALFRESCO_ADMINISTRATORS</value>
            </set>
        </property>

mrogers
Star Contributor
Star Contributor
The adminUsers property no longer exists.

gabri124
Champ in-the-making
Champ in-the-making
The adminUsers property no longer exists.

Then how do i make to define/declare my admin user?

Inside Admin_groups? I need to define a general admin user, to conect to Alfresco from another application interface.

mrogers
Star Contributor
Star Contributor
Add your user to ALFRESCO_ADMINISTRATORS

gabri124
Champ in-the-making
Champ in-the-making
Add your user to ALFRESCO_ADMINISTRATORS

Something like this?

 <property name="adminGroups">
            <set>
                <value>ALFRESCO_ADMINISTRATORS</value>
                <value>Admin</value> (user)
                <value>Test</value> (password)
            </set>
        </property>

Or just inside alfresco application define inside alfresco_administrators the user?