question

TomRt-5746 avatar image
0 Votes"
TomRt-5746 asked TomRt-5746 answered

How to upload photo into Azure AD User profile

I have Azure AD Free with registered application and everything around authentication seems to be working. I have registered users and I can change their information like name, surname etc. I am also able to do authentication in React APP and in Azure Functions.
Unfortunately, I am not able to change user's photos.

In portal I can successfully upload photo, but after save I get messages:

Unable to save user photo. If this user is newly created, please try again in an hour.
Unable to update user profile.

The User is created longer than a week....

If I try Graph API https://graph.microsoft.com/v1.0/me/photo/$value with provided Bearer token:

GET: Exception of type 'Microsoft.Fast.Profile.Core.Exception.ImageNotFoundException' was thrown. - this is expected... there is no photo
PUT: "message": "{\r\n \"errorCode\": \"ErrorUserResolutionFailedUserDoesNotExist\",\r\n \"message\": \"Exception of type 'Microsoft.Fast.Profile.Core.Exception.ProfileNotFoundException' was thrown.\",\r\n \"target\": null,\r\n \"details\": null,\r\n \"innerError\": null,\r\n \"instanceAnnotations\": []\r\n}",

It is not just my case, we have reproduced it on few another AAD.

What can be wrong?
Is there anything specific I have to allow on the AAD or on accounts?


azure-active-directorymicrosoft-graph-profile
· 16
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @TomRt-5746,

I am seeing the same issue in my tenant after uploading a profile image using my Global Admin account. I was previously able to update the photos and now cannot.

194836-image.png


I reported this bug to the product team and will update you when I have a response.




1 Vote 1 ·
image.png (121.0 KiB)

Is your user a personal account or a work account?

0 Votes 0 ·

It is work account

0 Votes 0 ·

Is this Azure AD B2C tenants?

0 Votes 0 ·
TomRt-5746 avatar image TomRt-5746 VickyKumarMindtreeConsultingPVTLTD-5545 ·

No, just Azure Active Directory (without B2C)

If it helps the Tenant ID b9939212-e2cd-4062-9a59-64707c380abe

0 Votes 0 ·

Thanks for the update, we tried to repo from our end its working fine, we also tried in postman it worked as expected,
could you please try again? if still it hasn't work try through postman.

Change profile pic through postman
Make PUT request for API https://graph.microsoft.com/v1.0/me/photo/$value ,
add required authentication token , then click on request body and go to binary and then click on select file and choose any sample photo . hope this will help .
195676-screenshot-add-proto-to-profile.png




0 Votes 0 ·
Show more comments

1 Answer

TomRt-5746 avatar image
0 Votes"
TomRt-5746 answered

It started to work without any activity from my side.
Thanks for replies

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.