Pull Auth0 Generated Avatar Link

Hey everyone! From within a single page web app I have access to the avatar link via user.picture. Is there anyway to pull this URL via the management API? We would like to store it in our data base we well, that way the users default initials are used, until they update their profile at with Gravatar.

Regards,

David Stewart

Hi @david14,

Please refer to following topic:

Where is the pictureUrls property?

Using the management API, you can fetch the picture property with the Auth0 Management API v2 or Auth0 Management API v2 endpoints.

Will get you the response:

{
  "picture": "https://s.gravatar.com/avatar/55502f40dc8b7c769880b10874abc9d0?s=480&r=pg&d=https%3A%2F%2Fcdn.auth0.com%2Favatars%2Fte.png"
}
1 Like

Thanks for sharing that solution Ricardo!

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.