cancel
Showing results for 
Search instead for 
Did you mean: 

i've deleted the admin account and i want to retrieve it

shrek
Champ in-the-making
Champ in-the-making
Hi,
I deleted the admin account in alfresco and I wonder how can I retrieve it?
Does anyone have any ideas?
thank you
7 REPLIES 7

thestorm
Champ in-the-making
Champ in-the-making
restart the server

shrek
Champ in-the-making
Champ in-the-making
it doesn't work
i restarted start alfresco server and it doesn't work

thestorm
Champ in-the-making
Champ in-the-making
what doesnt work exactly?

shrek
Champ in-the-making
Champ in-the-making
I can access to alfresco with all the users' accounts except admin account.
i don't know what' the problem
i've tried everythind i was told and it didn't work please if you have any ideas about this problem i will be thankful

hiteshlad
Champ in-the-making
Champ in-the-making
If you're familiar with the Spring configuration and overriding, you can update the adminUsers property of the authorityService bean and make your login an admin. 

For instance, this is what i'm doing in [extension-root]/alfresco/extension/custom-authority-services-context.xml] (assuming i'm hiteshlad):
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>

<!– ========================================================= –>
<!– The configuration of the Authority Service Implementation –>
<!– ========================================================= –>

<!–                                                                          –>
<!– This implementation supports the identification of users as admin users. –>
<!– It also supports groups and allows groups and users to be arranged into  –>
<!– hierarchies.                                                             –>
<!–                                                                          –>
<beans>
   
    <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="authorityDAO">
            <ref bean="authorityDAO" />
        </property>
        <property name="permissionServiceSPI">
            <ref bean="permissionServiceImpl" />
        </property>
        <!–                                                                  –>
        <!– A list of users with admin rights.                               –>
        <!–                                                                  –>
        <!– If the security framework is case sensitive these values should  –>
        <!– be case sensitive user names. If the security framework is not   –>
        <!– case sensitive these values should be the lower-case user names. –>
        <!–                                                                  –>
        <!– 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>
                <value>admin</value>
                <value>administrator</value>
                <value>hiteshlad</value>
                <value>shrek</value>
           </set>
        </property>
    </bean>
</beans>

FYI, i'm doing this in 2.1 SR7.  Hope that helps.

- hitesh

Hi I am also using the 2.1, I also did the same. I made an entry into custom-authority-services-context.xml. But this is not working, does it require restart of the server ?

mrogers
Star Contributor
Star Contributor
Yes restart the server after changing that spring over-ride.