Skip to main content

How to retrieve Office 365 profile pictures with Microsoft Graph in .NET

Small guide on how to pull pictures from Microsoft Graph API

· 3 min read View Comments
Martin Jurran
Software Engineer - OSS, Azure AI Foundry, Enterprise Architecture

Inofficial logo of Microsoft Graph

Inofficial logo of Microsoft Graph (Photo by the author)

In some cases, external services need to use employees’ identities - especially profile pictures. There is probably no more central place than Entra ID to acquire profile pictures.

Example: We are setting up an external, premade solution that lacks out-of-the-box integration with identity providers. And along with metadata, we may also want to transfer profile pictures into our solution.

Luckily, most organizations have an identity store that we can utilize. In our case, we can use Office 365 with its Entra ID. With these tools, we can easily access the necessary data to build our feature.

Establishing OAuth 2.0 Authentication to SharePoint Online REST Services in .NET

Introduction into how to use OAuth 2.0 to authenticate to SharePoint Online

· 7 min read View Comments
Martin Jurran
Software Engineer - OSS, Azure AI Foundry, Enterprise Architecture

Inofficial logo of the SharePoint REST API

Inofficial logo of the SharePoint REST API

In this article, I will share how to authenticate with OAuth 2.0 on Office 365’s SharePoint Online platform. The process includes registration of an app on Entra ID with certificate authentication, obtaining an OAuth 2.0 access token via .NET, and authenticating to SharePoint Online’s REST Services using the access token.

Welcome

This is the first post of my blog.

· One min read View Comments
Martin Jurran
Software Engineer - OSS, Azure AI Foundry, Enterprise Architecture

This is the first post of my blog. On this blog, you will be provided with frequent updates on personal projects & occasional results of my (hobby) data science research.

If you have any questions or concerns, just reach out to me via one of the linked social media platforms.

Thank you!