Welcome to the Kinde community

Home
Members
Jørund Amsen
J
Jørund Amsen
Offline, last seen 6 days ago
Joined October 4, 2024

When creating a user through the management API I could have sworn I've seen the error "USER_ALREADY_EXISTS", I even have the check in my code. However I can't seem to recreate this error response in any way when i create users with existing information. I've tried a simple create user with given name, family name and email, the exact same request done twice doesn't result in already exist, but just a generic ERROR_CREATING_IDENTITY USER_NOT_CREATED. How am I supposed to best know if creating a user fails due to the user already existing? Do I have to use get GET /users endpoint and filter by email? Feels heavy-handed

4 comments
D
J

Hello. I am using the kinde management api to automatically create new users when they are created in our own system. As far as I've understood, only m2m applications can access the kinde management api. What is the best flow for when a kinde user, autenticated with admin roles creates a user in our system, and the backend creates a kinde user on behalf of them. From what i can see I can't pass user information in the api for things like audit logs or role checks

6 comments
P
J