Open ixxie opened 1 year ago
This is indeed difficult at the moment. If I remember well, you have to disable the check that the user is an admin on the backoffice (https://github.com/chemins-de-la-transition/semapps/blob/master/backoffice/src/config/authProvider.js#L11-L14). Then you should be able to assign your own user as an administrator, which will give him permissions on all ressources.
For a new project, I have added an action to create an administrator with Moleculer REPL: https://github.com/nouvel-air/oasis/blob/master/middleware/services/initialization.service.js This could be reused by this project.
When creating a new deployment of semapps, how do I bootstrap the admin role, i.e. how is the first admin user created, who can then subsequently grant the role to others?