# Oauth2 plugin: avatar not used

**URL:** https://meta.discourse.org/t/oauth2-plugin-avatar-not-used/295121
**Category:** SSO
**Tags:** oauth2
**Created:** [February 12, 2024, 8:39pm UTC](https://meta.discourse.org/t/oauth2-plugin-avatar-not-used/295121 "2024-02-12T20:39:40Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)
#### Post date: [February 13, 2024, 12:17am UTC](https://meta.discourse.org/t/oauth2-plugin-avatar-not-used/295121/2 "2024-02-13T00:17:44Z")

</div>

hmmm, I’m not sure it’s possible to get the avatar

> [@Populating user avatars with Microsoft Graph Oauth2](https://meta.discourse.org/t/populating-user-avatars-with-microsoft-graph-oauth2/191074/2):
>
> The OAuth2 plugin only allows requesting the data from a single endpoint (the oauth2 user json url). All of the json \*\*\* path settings refer to locations within the JSON data, not separate API endpoints. Taking a quick look at the [graph.microsoft.com api docs](https://docs.microsoft.com/en-us/graph/api/user-get?view=graph-rest-1.0&tabs=http) it doesn’t look like the /me endpoint includes the avatar URL by default. Even if you were able to [fetch the profilePhoto resource](https://docs.microsoft.com/en-us/graph/api/resources/profilephoto?view=graph-rest-1.0), it looks like it returns a “photo ID” rather than a URL. So unfortunately I think you would need to develo…

---

_[View the full topic](https://meta.discourse.org/t/oauth2-plugin-avatar-not-used/295121)._
