
Announcements
Hi there,
We've built a small Power App to enable our staff to upload a new profile picture, and once approved, update their profile photo. However this appears to fail when setting the profile photo for users, apart from myself (as the creator of the flow and Power App).
Below is the errors we receive:
{
"statusCode": 400,
"headers": {
"Transfer-Encoding": "chunked",
"Vary": "Accept-Encoding",
"Strict-Transport-Security": "max-age=31536000",
"request-id": "953a1c13-867d-4161-b60d-786590be064b",
"client-request-id": "953a1c13-867d-4161-b60d-786590be064b",
"x-ms-ags-diagnostic": "{\"ServerInfo\":{\"DataCenter\":\"West Europe\",\"Slice\":\"E\",\"Ring\":\"5\",\"ScaleUnit\":\"001\",\"RoleInstance\":\"AM4PEPF0000DE75\"}}",
"Timing-Allow-Origin": "*",
"x-ms-apihub-cached-response": "true",
"Cache-Control": "private",
"Date": "Tue, 25 May 2021 17:56:44 GMT",
"Content-Type": "application/json",
"Content-Length": "296"
},
"body": {
"error": {
"code": "ErrorInvalidRequest",
"message": "The request is invalid.",
"innerError": {
"date": "2021-05-25T17:56:45",
"request-id": "953a1c13-867d-4161-b60d-786590be064b",
"client-request-id": "953a1c13-867d-4161-b60d-786590be064b"
}
}
}
}
Any help would be greatly appreciated.
Thanks
Hi @ChrisBrownNSFT,
It's unfortunate that the Update my profile photo action only support update the connection owner, it means the action not support update other user profile photo:
https://docs.microsoft.com/en-us/connectors/office365users/#update-my-profile
As a workaround, you could use the API to approach that:
Update profilephoto - Microsoft Graph v1.0 | Microsoft Docs
Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.