question

MuhammadUsmanshaikh-5935 avatar image
0 Votes"
MuhammadUsmanshaikh-5935 asked DanKershaw-5643 commented

Azure AD B2C Upload Profile image of the user

Hi,

I want to upload my user profile image to azure ad b2c from graph api and fetch it too through graph api.

Any sample or documentation related to it.

thank you.

azure-ad-b2cazure-ad-graph
· 2
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, have you seen this thread? It might be able to help you. If not please let me know and I can help you further.

Best,
James


0 Votes 0 ·

Hi,

It's not helping for azure ad b2c, can you give a sample for it that upload and download profile image of the user.

thank you.

0 Votes 0 ·

1 Answer

JamesHamil-MSFT avatar image
0 Votes"
JamesHamil-MSFT answered DanKershaw-5643 commented

Hi, in B2C you can use these Graph API's. You can try to use the profilePhoto resource type which lets you get/update a photo.
This may work:

 GET https://graph.windows.net/myorganization/users/{user_id}/thumbnailPhoto?api-version
 PATCH https://graph.windows.net/myorganization/users/{user_id}?api-version

If this answer helped you, please mark it as "Verified" so other users may reference it.

Thank you,
James







· 1
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.

@JamesHamil-MSFT - yes that would work. However, Azure AD Graph is already deprecated and earmarked for end-of-life June 2022.
Clearly we have a gap here.

@MuhammadUsmanshaikh-5935 @JamesHamil-MSFT Please file a feature request to provide Microsoft Graph APIs for managing B2C user's photos

0 Votes 0 ·