Azure-Samples / active-directory-dotnet-graphapi-web

A .NET 4.5 MVC web app that demonstrates how to query the Azure AD Graph API using the Azure AD Graph Client Library
82 stars 68 forks source link

Fail to read/write thumbnailPhoto #11

Open vcx opened 9 years ago

vcx commented 9 years ago

This sample uses a property called photofile to update photos but it doesn't exist on AAD. The ThumbnailPhoto property (which returns an IStreamFetcher do download/upload files) isn't working too (Insufficient Privileges for upload, 404 no property with name thumbnailPhoto for download)

Tested with the default tenant and also with a directory created by myself. I think the problem is in the client... if you release the code somewhere I can take a look by myself. I suspect that the problem is only in client side because older versions of the API still work.

[]s,

X

KJee85 commented 9 years ago

I have the same issue, it was working in older versions of the client but I upgraded to to other issues I was having, now I cannot get the thumbnail photo. It seems to work for some users but others it does not giving:

{"odata.error":{"code":"Request_ResourceNotFound","message":{"lang":"en","value":"Resource 'thumbnailPhoto' does not exist or one of its queried reference-property objects are not present."}}}

dkershaw10 commented 8 years ago

@KJee85 This 404 error is the expected behavior - if the user does not have a thumbnailPhoto. @vcx Upload photo should work as long as you have granted the app permissions, and the user has permissions to update the photo (users should be able to update their own photo, but only admins can update other user's photos).

fulky commented 7 years ago

What's the status of thumbnail read? I have uploaded user images in the o364 portal. I assume this is the thumbNail. I'm unable to retrieve the image in this sample application