/
x/db/make-admin.js (Give a person the "admin" role)
x/db/make-admin.js (Give a person the "admin" role)
This script takes an email address and if that matches a person record in the database it will give them the “admin” role.
Example:
$ node x/db/make-admin.js test@example.com
Test User <test@example.com> is now an admin
If you are already an admin the script will tell you:
$ node x/db/make-admin.js test@example.com
Test User <test@example.com> is already an admin
If the email doesn’t match a person record you will see an error message:
$ node x/db/make-admin.js nope@example.com
Could not find person record for email: nope@example.com
, multiple selections available,
Related content
AWS Admin
AWS Admin
More like this
Configure a Fresh Dev environment
Configure a Fresh Dev environment
More like this
Auth0 - Identity and Authentication services
Auth0 - Identity and Authentication services
More like this
Verifidentity
Verifidentity
More like this
x/get-dev-id-token.js (Generate an idToken for use in dev environments)
x/get-dev-id-token.js (Generate an idToken for use in dev environments)
More like this
Setup the schools database
Setup the schools database
More like this