Hello everybody,
we want to build an app that syncs the profile pics, therefore we create an application with the application permission User.Read.All in Azure AD. We use the java SDK.
ProfilePhoto stream = graphServiceClient.users(userPrincipal).photo()
.buildRequest()
.get();
The response is an internal server error.
Unexpected exception returned from the service.Error code: Unable to parse error response message
Error message: Raw error: <html><body><b>Http/1.1 Internal Server Error 43524 </b></body> </html>
GET https://graph.microsoft.com/v1.0/users/test@test.com/photo
SdkVersion : graph-java/v3.5.0
500 : Internal Server Error
Cache-Control : no-cache,no-store
Connection : close
Content-Length : 71
Pragma : no-cache
Are we missing something here? We use TokenCredentialAuthProvider and everything else works.