cancel
Showing results for 
Search instead for 
Did you mean: 

Administrator lost "ADMIN" tab

koxon_
Confirmed Champ
Confirmed Champ

Hi,

I am playing with users and groups. Using Studio I deleted the Administrators group. I assigned another group to the user Administrator. I deployed, it looked ok.

Today, I restart my server and the admin user cannot see the "ADMIN" tab in the header anymore. As a result, I can't access any Admin actions. I can't pull the latest config from studio. I am stuck 😕

Any idea why this happen? Shouldn't "Administrator" be protected from loosing all rights? At least one privilege user must always remain. How I could fix it?

Thank you

Nicolas

1 ACCEPTED ANSWER

Thierry_Martins
Star Collaborator
Star Collaborator

hello,

add a file named emergency-config.xml under $NUXEO/nxserver/config with this content

<?xml version="1.0"?>

<component name="emergency.users">

  <extension target="org.nuxeo.ecm.platform.usermanager.UserService" point="userManager">

    <userManager>
      <users>
        <virtualUser id="MyAdministrator" searchable="false">
          <password>secret</password>
          <property name="firstName">My</property>
          <property name="lastName">Admin</property>
          <group>administrators</group>
        </virtualUser>
      </users>
    </userManager>

  </extension>

</component>

And you'll be able to log in with MyAdministrator/secret

Kind regards,

Thierry

View answer in original post

2 REPLIES 2

Thierry_Martins
Star Collaborator
Star Collaborator

hello,

add a file named emergency-config.xml under $NUXEO/nxserver/config with this content

<?xml version="1.0"?>

<component name="emergency.users">

  <extension target="org.nuxeo.ecm.platform.usermanager.UserService" point="userManager">

    <userManager>
      <users>
        <virtualUser id="MyAdministrator" searchable="false">
          <password>secret</password>
          <property name="firstName">My</property>
          <property name="lastName">Admin</property>
          <group>administrators</group>
        </virtualUser>
      </users>
    </userManager>

  </extension>

</component>

And you'll be able to log in with MyAdministrator/secret

Kind regards,

Thierry

thanks it works!

Getting started

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.