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”.
Update the group in repository-data/application/src/main/resources/hcm-config/configuration/domains/hippodocuments.yaml
/hippo:configuration/hippo:domains/hippodocuments/editor:
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
/hippo:configuration/hippo:domains/defaultwrite/readwrite:
hipposys:groups: [admin, author, editor, sitewriters]
hipposys:groups: [admin, author, editor, sitewriters, backupadmin]
Map the group with the role(create everywhere.yaml)
definitions:
config:
/hippo:configuration/hippo:domains/everywhere/backupadmin:
jcr:primaryType: hipposys:authrole
hipposys:groups: [backupadmin]
hipposys:role: backupadmin
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.