Discord ID not saved in my kinde user
Hello,
I am having an issue where I am using a request access page where the user register its email (needs to be its discord email adress).
And later when I give access and the user can login via discord. I added the "Trust email addresses provided by this connection" so that the user with access given to his email its discord log in identity is added to the user in Kinde.
But when I have this logic put in place, I don't see the discord user id in my Kinde user, but I see the user avatar for example.
And I have the "Social identity (string)" enable on my ID Token

5 Replies
Hi, thanks for reaching out! You can get the Discord identity information for a logged-in user through Kinde's Management API by following these steps:
1. Use the Management API endpoint
GET /api/v1/users/{user_id}/identities
to retrieve the user's identities
2. This endpoint will return identity information including:
- id
- type
- name
- created_on
- last_login_on
- total_logins
- is_confirmed
Note that you'll need the read:user_identities
scope to access this endpoint
The response will include Discord identity details if the user has authenticated through Discord.
Let me know if this helps or if you have any other questions!Thank you for you answer, can it be stored at the user level? like we would store a username for example ?
Good question — I’ll check in with the team on the best way to handle this and let you know.
Great let me know if you have news
Hi,
Thanks for your patience!
Yes, this information can be accessed at the user level. To do so, you'll need to include the
expand=identities
parameter in your API request to:
This will allow you to extract the relevant identity information. For example, in an identity like:
d116f9afc5d84c2ca9773726d95389bb
is the connection ID, and 10708919283019
is the Discord ID.
You can find more details in our documentation here: Kinde API Docs – Get Users
Hope this helps! Feel free to reach out if you have any other questions.Kinde docs
Kinde Management API
The management API is for managing your Kinde account. Most things that can be done via the Kinde admin UI can be done with this API