To test a certain use case in the context of the integration of an application with AAD B2C I wanted to change the User Principal Name (UPN) of a user. The UPN corresponds to the username and email address of a user. First, I tried changing the UPN directly through the Azure Portal by switching... Continue Reading →
GraphServiceClient returns empty list when searching for SharePoint sites with an empty string as search term
Towards the end of last year, I supported a teammate with troubleshooting. It was about searching pages in SharePoint via Microsoft Graph API using GraphServiceClient. The following code returned an empty list. using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.Graph; using SharepointList = Microsoft.Graph.List; namespace Backend.Infrastructure.Microsoft.Graph.Sharepoint { internal class SiteLogic { private readonly GraphServiceClient graphClient;... Continue Reading →
Microsoft Graph REST API pitfall $expand
Last week I fell into a Graph REST API pitfall. In a customer project we implemented an interface that abstracts the interaction with Azure Active Directory (AAD). It defines a method that loads all users of a specific AAD group. The implementation of this interface interacts with Microsoft Graph REST API using GraphServiceClient. The code... Continue Reading →