Using the kinde management API...
It seems the object you get when you fetch users uses "first_name" and "last_name", but the API to update as user expects "given_name" and "family_name"? Is this a deliberate design choice? Am I missing something? Just lost a couple hours trying to debug this...
7 Replies
Get users object:
{
"id": "string",
"provided_id": "string",
"email": "string",
"username": "string",
"last_name": "string",
"first_name": "string",
"is_suspended": true,
"picture": "string",
"total_sign_ins": 0,
"failed_sign_ins": 0,
"last_signed_in": "string",
"created_on": "string",
"organizations": [
"string"
],
"identities": [
{
"type": "string",
"identity": "string"
}
]
}
Update user:
const inputBody = '{
"given_name": "string",
"family_name": "string",
"picture": "string",
"is_suspended": true,
"is_password_reset_requested": true,
"provided_id": "string"
}';
from the docs.
I can see why it would be confusing i'll let the team know
Hey just a quick question, where you using a SDK ? If yes which one ?
Hey @Ollie Mansell,
I am so sorry you lost a couple hours from this issue and Im glad to hear you are not blocked by this issue.
I have raised this with my team to determine if this is a deliberate design choice - if it is, there is definitely an oppounity to improve the experience here so others don't lose "a couple of hours" too.
Sorry again for the inconvenience.
Please don't hesitate to reach out if you come across any others issues, so you don't lose valuable hours again.
Thanks - another question - it doesn’t seem possible to find a user based on anything other than their ID? So I can’t for example search for a user based on their email address?
Hey @Ollie Mansell,
You can use the Get users API call with the
email
query parameter to filter users by email.
Let me know if you have any questions on this.Ah - Great, thanks Oli
My pleasure.