create new user programmatically #70
Answered
by
frankie567
JustinGuese
asked this question in
Q&A
-
could someone point me in the right direction on how to create a user programmatically? thanks for your help! |
Beta Was this translation helpful? Give feedback.
Answered by
frankie567
Sep 5, 2022
Replies: 1 comment
-
Hi @JustinGuese, welcome to Fief 👋 The best way is to use the Admin API for this. Documentation is a bit missing for this but basically you need two things:
Of course, users can also create an account themselves on the authentication pages 😉 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
frankie567
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @JustinGuese, welcome to Fief 👋
The best way is to use the Admin API for this. Documentation is a bit missing for this but basically you need two things:
justinguese
, you'll find it athttps://justinguese.fief.dev/admin/api/docs
.POST /users/
.POST /users/{id}/roles
.Authorization
header with theBearer
scheme:Authorization: Bearer YOUR_KEY
.Of course, users can also create an account themselves on …