Skip to content

How do I create an admin role? #60

Answered by hagopj13
engineervix asked this question in Q&A
Discussion options

You must be logged in to vote

The register endpoint can be used only to register as a user.
To create an admin, you should use the POST /v1/users (which is the create user endpoint) and specify role: 'admin' in the body. You need to be logged in as an admin to be allowed to do that. This means that the first admin should be created manually in the db.

Replies: 1 comment 10 replies

Comment options

You must be logged in to vote
10 replies
@hagopj13
Comment options

@ymadhubabu
Comment options

@sakydogalo
Comment options

@JOASJSF
Comment options

@Rushikatkar
Comment options

Answer selected by engineervix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
6 participants