Hi Lucas, not sure I fully understand your question/scenario but if you are looking for a programmatic way to change/edit user photo in Azure AD then checkout Set-AzureADUserThumbnailPhoto cmdlet
which is part of the
Azure AD PowerShell module.
You can also update users' avatar/photo under the user profile section in Azure Portal using these
steps
Are you trying to change the images on behalf of the user or are you trying to delegate access to the users to change their own images? Kindly clarify so we can provide best possible guidance.
Hope this helps.
Cheers.