I accidentally removed admin access to all users. Is there a way to undo this? Or anyway to create new users with admin access?
The data is in MySql database. Tried with the backup but did not work. I guess the user details are stored in database.
Agree with you that the user info is stored in database. So restored database then reboot-strap the storage must work.
I cant restore the database as its in production and its a huge db.
Any other option? I am trying to add a new role, group and assign a user to the group but how to connect a role to the group? When I try to login with the new user(mapped to the new group) I get “Access to this application is not allowed for this user”.
Thank you for your inputs.
Can you still be able to access and edit the cms/console ? If you can then try to import or update those nodes
No, seems like editors do not have console access.
It’s done. I was able to create new user, new role and new admin. Below are the steps just in case if anyone in future stumbles upon the same issue:
Create user(create backupuser.yaml)
Create a role(Create backupadmin.yaml )
hipposys:privileges: [‘jcr:all’, ‘hippo:admin’]
Create admin(create backupadmin.yaml )
Update the group in repository-data/application/src/main/resources/hcm-config/configuration/domains/hippodocuments.yaml
hipposys:groups: [admin, editor, sitewriters]
hipposys:groups: [admin, editor, sitewriters, backupadmin]
Update the group in repository-data/application/src/main/resources/hcm-config/configuration/domains/defaultwrite.yaml
hipposys:groups: [admin, author, editor, sitewriters]
hipposys:groups: [admin, author, editor, sitewriters, backupadmin]
Map the group with the role(create everywhere.yaml)
good on you for figuring it out. This is the only way to get back in to the system if you’ve lost all your admin users. Note that you can also do this in a separate project/jar, you don’t have to do it in your main distribution.