Extracting and Parsing the WWW-Authenticate header from HttpResponseMessage in .NET

I'm building an app using Azure AD to call the Microsoft Graph. In certain requests that require elevated access, the graph is issuing an HTTP 403 error with a special claims parameter inside the...

Tenant does not have a SPO license

I have an error while trying to use Microsoft Graph to write a script to upload an Excel file to OneDrive then read the Excel file. I followed Microsoft documentation to obtain the access token...

Microsoft Graph API : Is it possible to traverse recursive over Folders

We are converting from mail EWS into Microsoft office 365 Graph API, I want to flat all my Folder tree into list of flat folders, so each entry in list should contain: Folder:{parentId, myId} ,...

Microsoft Graph Outlook application permissions for a particular mailbox only

Microsoft Graph uses application permissions for background services. For Outlook APIs, application permission Mail.ReadWrite grants access to all mailboxes. Is there a way to restrict access to...

Spring Security oauth2 client - How does one obtain a JWT token

I am trying to use spring-security-oauth2-client and spring-security-oauth2-jose to authenticate against Azure AD and get JWT tokens. The login part works but the token that I receive is not a...

Add member to distribution list using Microsoft Graph

I am trying to add (and eventually remove) a member to a group using Graph. I can do it if the group is an Office365 group, but the issue is that I need to add it on a distribution list. I am...

Send message to personal Chat via Graph API

I read from here that getting a user's Teams chats that occurred outside the scope of a team or channel (1-to-1 chat conversation), you need to use this request GET /users/id/messages and Teams...

Python O365 Authentication when Basic Authentication becomes deprecated

I have a script (that I did not write) that uses basic authentication to access email boxes online. The script uses the following code: from O365 import Connection Connection.login(user,...

MS Identity Azure app registered but sends unauthorized_client in implicit flow

I have registered an app in Azure for Microsoft Identity platform. I configured it to allow MS Accounts (e.g. outlook.com) and have basically done everything in a few of the quickstarts online...

Check if Graph API folder exists

I am using Microsoft Graph API and I am creating a folder like so: var driveItem = new DriveItem { Name = Customer_Name.Text + Customer_LName.Text, Folder = new Folder { }, ...

Posting to a teams channel from a logic app or flow which includes an banner alert / activity feed item

I have a logic app which posts a channel chat message to teams automatically when a new item is created in SharePoint. This I have working but our client requires that all the team members receive...

Error 550 5.7.708 when creating Calendar Events via the Graph API

When creating Calendar Events via the Graph API, the events are created correctly in the calendar of the organizer but the invites to the participants get bounced. The organizer gets a 'Delivery...

Microsoft Graph 502 Bad Gateway - Failed to execute backend request when creating a private channel (beta API)

I'm trying to create a private channel in a Team using the Microsoft Graph API. I'm using the beta API because the membershipType (to make the channel private) is not available in the 1.0 API. My...

Microsoft Graph|: How to send Email with Custom Sender Name before Email address

I was wondering if there is a way to send emails using Graph APIs but with a custom sender name; By default sender Name is being displayed the username of email sender (From) like below: test <...

passport-azure-ad always redirect to failureRedirect but no error shown (nodejs)

following this tutorial I have build my azure ad login to use the graph api https://docs.microsoft.com/en-us/graph/tutorials/node?tutorial-step=3 The response from azure looks got to me and I...

Where is DeviceCodeProvider?

I copied a small example of Microsoft Graph API usage (from a Microsoft page) into my application. I added Microsoft.Graph and Microsoft.Graph.Core to my dependencies via the Nuget package...

Schema Extensions : "Unsupported or invalid query filter clause specified for property 'companyName' of resource 'User'."

I'm currently building an application that requires me to retrieve users from the Graph API depending of a custom property, in that case, extoe82ql2v_test/companyName but so far, the API responded...

How to update azure ad b2c custom user attribute using graph api

I'm new to the Azure B2C .I created custom attribute extension_role against a user object.i want to update this attribute using graph api.I tried below code public async Task...

CompactToken parsing failed with error code: 80049217 while using Microsoft-graph-auth 0.2.0

We are using the following libraries: microsoft-sdk-java-auth 0.2.0 microsoft-graph 2.3.1 microsoft-graph-core 1.0.5 java.util.List<String> scopes = new java.util.ArrayList<String>();...

What's the difference between User.Read vs OpenID/Profile/Email Permissions in AzureAD App Registration for an app that will sign in users?

When creating multi-tenant apps that will use Azure AD Authentication to sign users in, various samples on GitHub seem to suggest that the App Registration should include the following permissions...

Refresh Token is not returned in @azure/msal-node using Authorization code flow?

In example project provided by Microsoft here which uses Authorization code flow the acquireTokenByCode method does not return refresh tokens. From @azure/msal-node here refresh token is not...

Uninstall ms teams app / bot for a user ( bot framework bot )

Is it possible to uninstall a bot for a user in ms teams using some MS graph api or any other method? We have a user which is not able to talk to a bot in teams. It used to work before, but lately...

Get list of Microsoft Azure AD group names using MSAL library in Angular 8

I am working on an Angular 8 application that is trying to retrieve list of all the Microsoft AD groups available to the logged in user. Previously, I was working on authenticating a user using...

Read b2c extension attribute using Graph API in C#

We are using the Graph API in C# to read data from AD about users setup in B2C. We have a number of extension attributes setup in the b2c environment, and we want to be able to read the values of...

Microsoft Identity Web: Change Redirect Uri

I am using .net 5, Identity Web Ui to access Microsoft Graph. Where can I configure my Redirect URI? I need to specify the full Uri, since the generated one from callbackUri is incorrect due to...

Microsoft Graph Get All Users Exception Unsupported Query

I can submit this query to Microsoft Graph Explorer but in C# I get the an error message: "Microsoft.Graph.ServiceException: "Code: Request_UnsupportedQuery Message: Unsupported Query." var users...

Microsoft Graph - User photo : Microsoft.Fast.Profile.Core.Exception.ImageNotFoundException

I am trying Microsoft Graph in a personal project to learn about it. I have an Application and secret registered in Azure. This Application contains the following permissions at Application level:...

MS Graph API: OrderBy does not work when Expand is used (Groups - Members)

Issue: I am retrieving Group Members using Microsoft Graph API. I need to order the results based on the 'displayName'. Doing this on its own, works fine. I also need to know whether the members...

How to open a URL in a user's default browser?

python I've tried using selenium webdriver, but you must specify the driver as a hardcoded browser type, and thus it doesn't support all possible browsers. I've tried webbrowser.open_new(url), and...

How to make an attachment file sent via "POST - Send chat message" from Graph API displayable in Teams channel?

With a Flow from Power Automate, I am sending a POST Request to send a chat message with a file attachment in a Team's channel in MS Teams as documented in the Graph API docs It works well and I...