Fetch logged in user image from AD and show on Mendix page

Hello   We have requirement in our application to show user image in header. The picture should come from AD and not that user upload it manually. Also please let me know how can I show a image coming from outside Mendix.   Thanks
1 answers

A way is;

1 – Get the complete URL of the image (by a SAML response you can do a custom login logic to execute step 2 or 3)

2 – Save the Image from URL to the specialised Mx Object from image

3 – Do a SOAP/REST call wherein you map the image response into a specialised Mx Object from image; https://docs.mendix.com/howto/integration/consume-a-rest-service