r/GraphAPI • • Mar 18 '23

OR Condition in Graph API

2 Upvotes

I am trying to run OR condition to find users with either of license assigned but its not working. Can someone please help to correct it ?

https://graph.microsoft.com/v1.0/users?$filter=assignedLicenses/any(x:x/skuId eq '18181a46-0d4e-45cd-891e-60aabd171b4e' or x/skuId eq '06ebc4ee-1bb5-47dd-8120-11324bc54e06')


r/GraphAPI • • Mar 19 '23

MS Graph get all user's mailbox forwarding rules in 1 request

Thumbnail self.microsoft365
3 Upvotes

r/GraphAPI • • Oct 06 '22

How do I authenticate without user interaction?

1 Upvotes

I'm building a website and need to grab some data from a a SharePoint list to display on the website.

But, I can't figure out how to authenticate without needing user input. Anyone wanna poiny me in the correct direction.


r/GraphAPI • • Oct 24 '22

Is there a way to use GraphAPI to get logged in AzureAD Accounts on a managed device, not just local accounts?

2 Upvotes

A Windows device that is AAD joined. I would like to be able to query it locally and retrieve not just the local accounts on the system, but the currently logged-in Azure AD account (and others that have logged into the device as well)

Is this possible?


r/GraphAPI • • May 17 '23

I am getting Access Denied for Microsoft.Graph.Calendar

1 Upvotes

I have created an enterprise App with Calendars.read and it works I added Calendars.READWRITE so I can add events.

Unfortunately, I am getting ACCESS DENIED.

Any help or guidance would be greatly appreciated.


r/GraphAPI • • Apr 07 '23

OneDrive - Change Ownership - Grant-MgDriveRootPermissions

3 Upvotes

Hello there.

Trying to change the ownership of a OneDrive root folder, in a scenario where a person leaves the organisation. Utilising the PowerShell Graph SDK - Microsoft.Graph.Files namespace.

The cmdlet Grant-MgDriveRootPermissions - Ref here - feels like it should do what I need. However I can't seem to form the -recipients parameter correctly.

I'm not quite sure what a IMicrosoftGraphDriveRecipient is and how I form the syntax to pass into the -recipients.

Would anybody be able to point me in the right direction pleas.e

Thank you


r/GraphAPI • • Jan 27 '22

Assign manager via graph api

Thumbnail self.powershell
1 Upvotes

r/GraphAPI • • Jan 27 '22

AzureAD Powershell Module vs REST via Graph API

Thumbnail self.powershell
1 Upvotes

r/GraphAPI • • Dec 12 '22

Adding app permissions

2 Upvotes

I have an app that have permissions to read users and CRUD for events.
And want to add read emails.

Does the current organizations that have consented the old permissions need to consent again when i add new ones?
Will their events still work while waiting for new consent?

Would it be better to register the email calls as a new app?


r/GraphAPI • • Oct 02 '22

Delegated or application permissions for cron jobs

3 Upvotes

Hi! I'm building a marketing automation tool that uses the Graph API to send automated emails on behalf of our users. Essentially, a user signs up using the Sign up and sign in user flow provided by Azure AD B2C. Then we're using a cron job to trigger a function on our server every minute. This function loops through all of our user's email sequences, and when an email is ready to be sent, sends an email on a user's behalf.

Should I be using the delegated permissions or application permissions (Daemon app) for this use case? My intuition tells me delegated, but in that case our app would have to create a different Graph Client for each user we need to send an email on behalf of, like so:

sequences.forEach(sequence => {
  const graphClient = Client.init({
    authProvider: (done) =>
      done(
        null,
        sequence.user.accessToken
      ),
  });

  sequence.contacts.forEach(sequenceContact => {
    // Send an email to a sequence contact on the user's behalf using the graphClient
  })
})

Here's a link to the Stack Overflow question I've created


r/GraphAPI • • Apr 07 '23

Creating an Azure Function using Microsoft Graph API

Thumbnail
link.medium.com
2 Upvotes

I have written an article on the implementation of Azure Functions using Microsoft Graph API. Feel free to read, share and comment.


r/GraphAPI • • Jan 27 '22

Best way to use Microsoft Graph API without showing secret key?

Thumbnail self.powershell
1 Upvotes

r/GraphAPI • • Feb 09 '22

A chance to talk with the Microsoft Identity Team for Azure AD Graph API decom

3 Upvotes

I thought this would be helpful for folks to listen in on and ask any questions to the people who work in the space.

It is hosted on Twitter and is open to the public.

https://twitter.com/markmorow/status/1490804531222827008?s=21


r/GraphAPI • • Nov 27 '22

A bug (or a feature) of Create contact action?

6 Upvotes

We've been troubleshooting an issue with contact creation using Graph API and wanted to check if anyone else has seen or heard of anything like this?

Symptom: When creating personal contacts with Graph API with an email address, the Email address display name always gets set as Firstname Last name. This seems to be happening because its created as an EX instead of SMTP type. This only happens if a user exists with the same email address in the tenant's Azure AD (either a regular or guest user account).

We came across this as none of these contacts would work with the Outlook client's auto-complete feature. When digging through the auto-complete cache, we found that Outlook picked up these contacts' email address types as EX and not SMTP.

This is the rest API we are using: Create contact - Microsoft Graph v1.0 | Microsoft Learn

Steps to reproduce:

  1. Execute one request to create a personal contact in any mailbox using an email address that does not exist in the tenant's Azure AD. Make sure to specify the name format as per the attached (appended with their email address after the name in round brackets). The result will be as intended, email address type will be displayed as requested

  2. Do the same as above however, for the email address ('address' field) of the contact, use an address that exists in the tenant's Azure AD. The result will be that the contact's email address created will be of an EX type; you can tell by looking at the 'name' field of the created contact will not be as in the request. This contact will also fail to appear in the Outlook client's auto-complete feature.

Other notes

Graph API does not appear to have a method to stipulate email address type in the query, and it's puzzling how the existence of a user with the same email address can impact the creation of Personal Contacts.

We also tried the following: Created a contact in Outlook manually; it took the correct email address time (i.e. could change the Email address display name). Retrieved it via Graph into a variable, deleted the contact record and re-created it back from the earlier retrieved values. As long as a user with the same email address existed in the Azure AD, the contact's email address would have the same issue as above.

Here are the graph API testing examples:


r/GraphAPI • • Jan 24 '22

r/GraphAPI Lounge

3 Upvotes

A place for members of r/GraphAPI to chat with each other


r/GraphAPI • • Mar 07 '22

Web App Document Storage

Thumbnail self.webdev
1 Upvotes

r/GraphAPI • • Jun 09 '25

Now Send Email using function app and Graph api

2 Upvotes

r/GraphAPI • • Jan 02 '26

Microsoft graph api integration to server

4 Upvotes

Hi all! I would like to ask if subscription is needed for testing Microsoft graph api in my server (backend in rails).

Basically I would like to use my backend to call the microsoft graph api to create/edit/delete bookings (microsoft booking)

But after doing some research I find that I either need a work account with Microsoft 365 Developer Program hat includes a sandbox (guaranteed with Visual Studio Professional or Enterprise subscription) or have a Microsoft 365 tenant (work accounts like Teams/Outlook) and with Microsoft Bookings included in order to test the above.

Has anyone experimented with this?


r/GraphAPI • • Oct 20 '26

I got a problem O365 microsoft

2 Upvotes

So basically, Microsoft graph rest API 1.0 provide the graph file meta data and in the audit.SharePoint provide the IP address of file changes. Suppose that there is an rename of a file I would get the IP address from the audit.SharePoint and the file data from Microsoft graph rest API, but I want to merge that to and provide a single response, but there is no common ID between them so I am stuck


r/GraphAPI • • Sep 22 '25

Are these user attributes available? info,wWWHomePage,PostOfficeBox

2 Upvotes

Hi,

we try to also query these three user attributes, which are available in Active Directory, but cant find them via Graph API.

info
wWWHomePage
PostOfficeBox

Thanks for any hint


r/GraphAPI • • Apr 28 '25

get-MgUserMailfolder Access Denied issue

2 Upvotes

Good day all,

I have been trying to get user mailbox inbox total count and unread count using get-MgUserMailfolder and I get Access Denied.

I am connecting with a Global admin account.

Any help will be greatly appreciated.


r/GraphAPI • • Jul 01 '25

Get notification of expiring secrets using Graph API.

2 Upvotes

r/GraphAPI • • Aug 19 '25

Candidate not receiving Outlook calendar invite after interview scheduling (Graph API 409 error)

2 Upvotes

Hey folks,

I’m running into an issue with interview scheduling in our ATS that integrates with Outlook via Microsoft Graph API. A candidate scheduled their second interview, but they never received the calendar invite. The interviewer/manager did get the invite on their calendar, but the candidate didn’t. Even sending an RSVP reminder didn’t help.

Looking at the logs, I noticed that when the event was being created, Microsoft Graph returned a 409 error (ConcurrentItemSave) with the message:

It looks like the calendar event creation failed for the candidate, which explains why they didn’t get the invite.

Has anyone else seen this Graph API 409 ConcurrentItemSave error when creating calendar events? How did you resolve it? Is this something I should be retrying on my end, or does it point to an issue with the Outlook mailbox itself?

Any insights would be much appreciated!


r/GraphAPI • • Jan 17 '26

Insufficient developer role - meta graph api

2 Upvotes

We are also facing an issue that started around 2 days ago, even though everything was working correctly before.

Problem:

When trying to connect an Instagram account, we receive the error:

“Insufficient developer role”

Current status:

Our app has Advanced Access approved for:

instagram_business_basic

instagram_business_manage_insights

The Meta Developer Dashboard shows everything as green (no warnings or pending reviews)

We are able to successfully use instagram_business_manage_insights

The issue occurs only with instagram_business_basic, specifically while connecting the Instagram account

This issue appeared suddenly without any changes on our side.

Could you please help us understand:

Why this error is occurring despite having Advanced Access?

Please can anyone help