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.


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 https://auth0.com/docs/api/management/v2#!/Users/get_users_by_id or https://auth0.com/docs/api/management/v2#!/Users_By_Email/get_users_by_email 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.