Create user with admin role #2

Open
opened 2026-01-30 14:04:00 +00:00 by Numerica · 4 comments

Currently sets new users as viewer even though it has the npm console command does have an -a flag meaning it should create it as admin

Currently sets new users as **viewer** even though it has the _npm console_ command does have an **-a** flag meaning it should create it as admin
Author

workaround

$ abra app run YOURDOMAIN db -- bash -c 'echo "UPDATE user_entity SET role = \"admin\" WHERE id = \"YOURID\";" | mysql -u root -p$(cat /run/secrets/db_root_password) tellaweb'
workaround ``` $ abra app run YOURDOMAIN db -- bash -c 'echo "UPDATE user_entity SET role = \"admin\" WHERE id = \"YOURID\";" | mysql -u root -p$(cat /run/secrets/db_root_password) tellaweb' ```
Owner

maybe it needs a double dash?

from this:

abra app run DOMAIN api /docker-entrypoint.sh npm run console users create -a EMAIL

to this:

abra app run DOMAIN api -- /docker-entrypoint.sh npm run console users create -a EMAIL
maybe it needs a double dash? from this: ``` abra app run DOMAIN api /docker-entrypoint.sh npm run console users create -a EMAIL ``` to this: ``` abra app run DOMAIN api -- /docker-entrypoint.sh npm run console users create -a EMAIL ```

Hi! juan from tellaweb here :)

sadly it seems the -a option is not working, we just got some small funding for a couple of tellaweb features so i will try to sneak a fix of that in the next release.

In the meantime i think as a workaround you could try doing npm run console users toggle-role EMAIL for making the user admin after creating it.

Hope this helps 👍

Hi! juan from tellaweb here :) sadly it seems the `-a` option is not working, we just got some small funding for a couple of tellaweb features so i will try to sneak a fix of that in the next release. In the meantime i think as a workaround you could try doing ` npm run console users toggle-role EMAIL` for making the user admin after creating it. Hope this helps 👍
Owner

Woohoo, thank you @juandans01 !

Woohoo, thank you @juandans01 !
Sign in to join this conversation.
No description provided.