# Oauth2 json avatar path not working

**URL:** <https://meta.discourse.org/t/oauth2-json-avatar-path-not-working/108349>\
**Category:** Bug\
**Created:** [February 5, 2019, 12:08am UTC](https://meta.discourse.org/t/oauth2-json-avatar-path-not-working/108349 "2019-02-05T00:08:26Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![kueda](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kueda/32/130762_2.png) [@kueda](https://meta.discourse.org/u/kueda)\
**Post date:** [February 5, 2019, 12:08am UTC](https://meta.discourse.org/t/oauth2-json-avatar-path-not-working/108349/1 "2019-02-05T00:08:26Z")

</div>

I’m trying to get the oauth2 basic plugin working on a trial version of hosted Discourse. Everything seems to work, except for the `oauth2 json avatar path`, so I suspect I’m just doing something wrong. The response to the user JSON request looks something like this:

```plaintext
{
  "email": "an.email.address@gmail.com",
  "id": 123,
  "login": "anemailaddress",
  "name": "An Email Address",
  "medium_user_icon_url": "https://static.inaturalist.org/attachments/users/icons/61724/medium.jpg?1475527316",
  "original_user_icon_url": "https://static.inaturalist.org/attachments/users/icons/61724/original.jpg?1475527316",
  "user_icon_url": "https://static.inaturalist.org/attachments/users/icons/61724/thumb.jpg?1475527316"
}

```

I’ve set the `oauth2 json avatar path` to `original_user_icon_url` (I’ve tried `medium_user_icon_url`, too), but every time I create a new account via OAuth, the user’s avatar image is just the default colored circle with the first letter of their name. Username, name, and email import just fine. This feels buggy, but am I just missing a configuration here?

---

_[View the full topic](https://meta.discourse.org/t/oauth2-json-avatar-path-not-working/108349)._
