K
Kinde3mo ago
LIFE

Is it possible to set a profile picture through the API

Is it possible to set profile picture through the API?
8 Replies
IkiTg07
IkiTg073mo ago
Hey, so doesn't seem to be a way to do that but i'll let the team know because in some requests there's a picture field returned And also maybe next time put a more concise title for your post please
Oli - Kinde
Oli - Kinde3mo ago
Hey @Stian - Fartskriver, As @IkiTg07 said, currently there is no way to set a profile picture through the API. The picture claim in an ID token is populated by a social provider, if a picture from the social provider account exists. If not, it attempt to get a Gravatar URL as the picture claim. You can read more about this logic here. At the moment there is no way to update a user's picture via API. I will add this request to our internal request table. @Stian - Fartskriver - it would be great to learn more about the use-case you are trying to achieve by setting a profile picture via API.
Kinde docs
Manage the authentication experience
Our developer tools provide everything you need to get started with Kinde.
LIFE
LIFEOP3mo ago
sorry, the post must have auto set a name. I've edited it for SEO purposes Thanks appreciate it. Use case For the use case i'm trying to look into whether or not we can replace a user database containing information about our users such as: - user description - address - social security number - profile picture My intial thought was to use feature flags and properties as to avoid having an extra database to store information related to the user. If setting a profile picture is not possible through the API, i'll make a database that is loosley connected to the KINDE users in the application
Oli - Kinde
Oli - Kinde3mo ago
Thanks @Stian - Fartskriver for outlining your use-case in detail. You could definitely make use of Kinde Properties to store details about your users on Kinde. You could consider storing a Profile picture URL as a property on Kinde. I hope this helps.
Kinde docs
About properties
Our developer tools provide everything you need to get started with Kinde.
LIFE
LIFEOP3mo ago
thats a good point, thanks! i'll look into it and the benefits of each approach
Oli - Kinde
Oli - Kinde3mo ago
Let me know if you come across any issues.
LIFE
LIFEOP3mo ago
Thanks! While i have you here, is it possible to request the user to fill out information about a property on first time login either required or optional?
Oli - Kinde
Oli - Kinde3mo ago
This is possible, but you would have to have logic on your end to redirect the user to a page where they can enter this information and then store the value against the user's property via an API call to the Kinde Management API. See the following 2 links: 1. https://kinde.com/api/docs/#update-property-value 2. https://kinde.com/api/docs/#update-property-values Let me know if you have any other questions, and I can get back to you tomorrow.
Want results from more Discord servers?
Add your server