K
Kinde5mo ago
IkiTg07

update user email in code

Is there a way to use Kinde Management API to update the user's email ? I can update the given and family name doing so :
const client = await createKindeManagementAPIClient();

client.usersApi.updateUser({
id: ctx.userId,
updateUserRequest: {
familyName: input.family_name,
givenName: input.given_name,
},
});
const client = await createKindeManagementAPIClient();

client.usersApi.updateUser({
id: ctx.userId,
updateUserRequest: {
familyName: input.family_name,
givenName: input.given_name,
},
});
But i need to be able to update it's email in Kinde as well
20 Replies
onderay
onderay5mo ago
Not just yet, we are actively working on it and looking like we will have it ready in the next 14 days. https://updates.kinde.com/board/update-user-identities-via-api
Update user identities
Update user identities
IkiTg07
IkiTg075mo ago
It would be awesome. Thanks !
Hydra
Hydra5mo ago
Once we are able to update username value from the Management API, will we also be able to search by username (as it should be unique per documentation)? I'd like a way to search by username instead of pulling all users and filtering by username. Thanks!
onderay
onderay5mo ago
I have noted your suggestion down and passed it along to the team.
IkiTg07
IkiTg075mo ago
@Andre @ Kinde is it soon to be published i'm a little impatient here but I do really need this feature
onderay
onderay4mo ago
@IkiTg07 it is being actively tested in our engineering environment, so should will be out by the end of the month
IkiTg07
IkiTg074mo ago
Alright looking forward to it
Oli - Kinde
Oli - Kinde4mo ago
Hey @IkiTg07, We are at the stage where we are testing the update user email feature, but testing the feature has taken longer than originally anticipated. The feature will be live by the end of this week. I can give you some more information about the API endpoints to update a user's email once the feature is live, if you like?
IkiTg07
IkiTg074mo ago
Oh awesome thanks. I was wondering if we will be able to update the user’s phone number using management API so that I could get that info using the sdk context
Oli - Kinde
Oli - Kinde4mo ago
As part of this feature, you will be able to update any identity via the API. It's not exactly updating an identity, this feature will allow you to add a new identity to a user and delete an identity - you will also be able to add multiple idenities against a user
IkiTg07
IkiTg074mo ago
Mmm I see. I’d like to have more info once it’s live
Oli - Kinde
Oli - Kinde4mo ago
Ill share more details once the change is live.
IkiTg07
IkiTg074mo ago
Thanks !
Oli - Kinde
Oli - Kinde4mo ago
No worries.
IkiTg07
IkiTg074mo ago
Hello @Oli - Kinde , I got the email about user identity management. Is the nextjs createKindeManagementAPIClient updated to take this into account ? I was waiting for the feature and now it's out I need to implement it
Oli - Kinde
Oli - Kinde4mo ago
Hey @IkiTg07, The recommended approach for Kinde Management API interations from a NextJS app is to now use @kinde/management-api-js - see here I will ask my teammate as to how you can use the @kinde/management-api-js for identity management.
GitHub
GitHub - kinde-oss/management-api-js: javascript package for intera...
javascript package for interacting with the Kinde Management API - kinde-oss/management-api-js
Kinde docs
NextJS App Router SDK
Our developer tools provide everything you need to get started with Kinde.
IkiTg07
IkiTg074mo ago
Yeah I was looking at management-api-js few days ago and I did try it but couldn't find how to use it for identity management
Oli - Kinde
Oli - Kinde4mo ago
Hey @IkiTg07, We are going to update the @kinde/management-api-js package to include identity managment API endpoints. We will let you know when this is done. CCing @DanielRivers who will update the @kinde/management-api-js package when he gets a chance
IkiTg07
IkiTg074mo ago
Thanks for the time and answers @Oli - Kinde !
Oli - Kinde
Oli - Kinde4mo ago
My pleasure @IkiTg07
Want results from more Discord servers?
Add your server