If you have a user in Passbolt and have access to the database, you can make that user an administrator by following these steps:
First, log in to phpMyAdmin on your server.
Once inside phpMyAdmin, look for the "roles" table or run the following SQL query to see the list of roles and their IDs:
SELECT * FROM `roles`;
Next, look up the users table or run the following SQL query:
SELECT * FROM `users`;
Find the user you want to make an administrator and modify the role_id field with the ID corresponding to the administrator role. You can do this manually or run the following SQL query, replacing YOUR_ID_ADMIN_ROLE with the administrator role ID and YOUR_ID_USER with the user ID:
UPDATE `users` SET `role_id` = 'YOUR_ID_ADMIN_ROLE' WHERE `users`.`id` = 'YOUR_ID_USER';
Finally, log out of your account and log in again. You should now see your account with the administrator role in Passbolt.
Ready! You have successfully changed the role from user to administrator from the database using phpMyAdmin in Passbolt.