How can I create the human users programatically using APIs?
I have 2 organizations and I want to create users in them programatically based on the condition in the csv file, (I dont want to use the import feature because csv requires some transformation). I have tried with converting JSON file to jwt for management, auth and admin users and it didnt work.
And I used in the the key in the curl, just a matter of testing whether authentication key works or not
Error I am getting
18 Replies
Unknown User•9mo ago
Message Not Public
Sign In & Join Server To View
How can I set in the zitadel tools?
Unknown User•9mo ago
Message Not Public
Sign In & Join Server To View
I am using it in php
Unknown User•9mo ago
Message Not Public
Sign In & Join Server To View
Nope its not working for me adding scopes in jwt claim
Yes i know, i tried in jwt.io
Unknown User•9mo ago
Message Not Public
Sign In & Join Server To View
The scope is required in the token endpoint. Thanks for the nudge, but I am still getting error
The error I am getting in the docker console
Error message in the curl response
Unknown User•9mo ago
Message Not Public
Sign In & Join Server To View
Tried, no luck
Hey @ĐARK々MÁTTER! I think the following documentation would help you structure the flow you're trying to build - Please let me know if you have any other questions: https://zitadel.com/docs/guides/integrate/login/oidc/login-users#create-application
ZITADEL Docs
Overview
It is oauth kind of flow. I want to create a user on zitadel from curl request
https://zitadel.com/docs/apis/resources/user_service_v2/user-service-add-human-user How can I get Bearer Token here to create human user in any organization I want to?
ZITADEL Docs
Create/import a new user with the type human. The newly created user will get a verification email if either the email address is not marked as verified and you did not request the verification to be returned.
For machine to machine clients zitadel recommends jwt bearer token, https://zitadel.com/docs/guides/integrate/login/oidc/oauth-recommended-flows#our-recommended-authorization-flows
ZITADEL Docs
Introduction
I am using it as shown above, am I doing something wrong?
@FFO you can help me now 😅
Hey @ĐARK々MÁTTER! Based on what you're asking, this would be the right doc to look at: https://zitadel.com/docs/guides/integrate/service-users/authenticate-service-users
ZITADEL Docs
This guide explains ZITADEL service users and their role in facilitating secure machine-to-machine communication within your applications.
Thanks @Raccine is it possible to have a service account that is admin of all the organizations?
How can I authenticate the management service user from the zitadel organization?
