Office 365 Users Connection provider to retrieve the User photo metadata

Hello i am not sure if this is the right place to ask this. But i have been searching for the best way to be able to access The User photo in Office365, but i am not sure how i can accomplish this in outsystems. Would love some thoughts on this, there's no forge component to do so right?


I am kinda clueless about how to do this really

Hi Joao Escobar,

I'd suggest you take a look at the Microsoft Graph Connector for accessing data in Office365 (Microsoft's documentation on the API that allows obtaining a user's profile photo can be found here) and Microsoft Login Connector (for Traditional Web or for Reactive Web Apps) for authentication.

Hope this helps

Jorge Martins wrote:

Hi Joao Escobar,

I'd suggest you take a look at the Microsoft Graph Connector for accessing data in Office365 (Microsoft's documentation on the API that allows obtaining a user's profile photo can be found here) and Microsoft Login Connector (for Traditional Web or for Reactive Web Apps) for authentication.

Hope this helps

Thank you so much for your hint. Just a question regarding this topic . For what i understood i have to Get the user token from the MicrosoftLoginConnector but what is the field Resource? I am trying to run a test as you can see in the screenshot


Hi Joao,

Checking the Microsoft documentation, I'd say you need to request access to either the user or me resources?

You can also ask that question directly on the Microsoft Login Connector's support section, people from its development team will likely have more in depth knowledge than I do about how it works.

From this post seems you should be able to request access to the Microsoft Graph API simply with a Resource input parameter of "https://graph.windows.net"

Joao,


If it helps the documentation tab on 

https://www.outsystems.com/forge/component-overview/6927/ms-planner-connector

and 

https://www.outsystems.com/forge/component-overview/6984/app-feedback-to-ms-planner-traditional


provide more details on accessing on configuring your apps to access the MS graph API 



Jorge Martins wrote:

Hi Joao,

Checking the Microsoft documentation, I'd say you need to request access to either the user or me resources?

You can also ask that question directly on the Microsoft Login Connector's support section, people from its development team will likely have more in depth knowledge than I do about how it works.

From this post seems you should be able to request access to the Microsoft Graph API simply with a Resource input parameter of "https://graph.windows.net"


after reading the documentation everything is a bit more clear now. The only thing that i am still missing is the value of "$value" that you can find here....for example https://graph.microsoft.com/v1.0/users/{id | userPrincipalName}/photo/$value


Thanks once again it was helpful

Hi Joao,

Try using (literally) $value? From the examples here I believe that adding $value to the end of the URL means "get the actual photo contents" instead of "get the photo's metadata".