Welcome to the Kinde community.

P
K
A
A
A

Organizations.getOrganizationUsers bug full_name="<unknown>"

When listing org users via management api, the user without first and last name will return with full_name="<unknown>".
Attachment
Screenshot_2024-09-26_142306.png
O
d
8 comments
Hey @duro_ujec,
Thanks for reaching out.

When you search for this user in the Users page on the Kinde Admin what does it say is their name (under User)?
FYI, you can search by Kinde ID in the Users page.
It shows their email.
BTW tis happens also for empty strings for first/last name if removed via UI.
Attachments
Screenshot_2024-09-30_162237.png
Screenshot_2024-09-30_162303.png
Gotcha. I can replicate this issue.
Thanks for sharing this @duro_ujec.
What would you expect full_name to be in both of these scenarios?
Great!
I would probably expect the names to be trimmed to null in case of empty string and then full_name is null as well.
At least you could do that when receiving it from your own UI. For API calls, you could do the same or make it more predictable and force validation to non_empty or null.
Thanks for getting back to me @duro_ujec, I will discuss this with my teammates and get back to you once I have more info.
Hey @duro_ujec,
You are right that the response in full_name field in a Organizations.getOrganizationUsers request could be improved.
We also don't have the full_name field in the Get User API call.
So there is definitely opportunities for improvement here.

For now, I would suggest using the details from the first_name and last_name to infer what the full name of the user is.

Let me know if you have any further questions on this.
Yes I quickly developed a workaround. That full name field is pretty unnecessary in the response imo. Thx.
Add a reply
Sign up and join the conversation on Discord
Join