# אכלוס אוואטרים של משתמשים עם Microsoft Graph Oauth2

**URL:** <https://meta.discourse.org/t/populating-user-avatars-with-microsoft-graph-oauth2/191074>\
**Category:** SSO\
**Created:** [20 במאי,‏ 2021,‏ 1:44pm UTC](https://meta.discourse.org/t/populating-user-avatars-with-microsoft-graph-oauth2/191074 "2021-05-20T13:44:19Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![adamgpope](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/adamgpope/32/121658_2.png) [@adamgpope](https://meta.discourse.org/u/adamgpope)\
**Post date:** [20 במאי,‏ 2021,‏ 1:44pm UTC](https://meta.discourse.org/t/populating-user-avatars-with-microsoft-graph-oauth2/191074/1 "2021-05-20T13:44:19Z")

</div>

Hey friendly Discourse folks,

I’ve used [discourse-oauth2-basic](https://github.com/discourse/discourse-oauth2-basic) to allow our members to login and auto-populate their email, full name, and username values from their Office365 organisational account. I’m struggling to get the avatar populated however, and was wondering if anyone has had any success doing so?

The [graph guidance here](https://docs.microsoft.com/en-us/graph/api/profilephoto-get?view=graph-rest-1.0) suggests the URL for the avatar should be available at photo/$value; which I’ve put in but it’s not being returned and I can’t see any errors in the logs.

My current settings are:

 ![image](https://global.discourse-cdn.com/meta/original/3X/5/9/59501b01983c1bbff338555b1a89b4e2c8619422.png)

…I’ve also tried adding ‘photo’ into the `oauth2 callback user info paths` and `oauth2 authorize options` fields to no avail. Any help much appreciated 😉

---

_[View the full topic](https://meta.discourse.org/t/populating-user-avatars-with-microsoft-graph-oauth2/191074)._
